Page MenuHomePhabricator

D650.diff
No OneTemporary

D650.diff

diff --git a/bin/tests/autoload/NamespacedclasslocatorTest.php b/bin/tests/autoload/NamespacedclasslocatorTest.php
deleted file mode 100644
--- a/bin/tests/autoload/NamespacedclasslocatorTest.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php namespace tests\spitfire\core\autoload;
-
-use spitfire\autoload\NamespacedClassLocator;
-
-class NamespacedclasslocatorTest extends \PHPUnit_Framework_TestCase
-{
-
- private $locator;
-
- public function testLookingForControllers() {
- $locator = new NamespacedClassLocator('', spitfire()->getCWD() . '/bin/controllers', 'Controller');
-
- $this->assertNotEquals(false, $locator->getFilenameFor('HomeController'),
- 'The class Locator in spitfire should find the home controller.');
- }
-
-}
\ No newline at end of file
diff --git a/bin/tests/phpunit.xml b/bin/tests/phpunit.xml
deleted file mode 100644
--- a/bin/tests/phpunit.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<phpunit
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
- backupGlobals="true"
- backupStaticAttributes="false"
- cacheTokens="false"
- colors="false"
- convertErrorsToExceptions="false"
- convertNoticesToExceptions="false"
- convertWarningsToExceptions="false"
- forceCoversAnnotation="false"
- mapTestClassNameToCoveredClassName="false"
- printerClass="PHPUnit_TextUI_ResultPrinter"
- processIsolation="false"
- stopOnError="false"
- stopOnFailure="false"
- stopOnIncomplete="false"
- stopOnSkipped="false"
- stopOnRisky="false"
- testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
- timeoutForSmallTests="1"
- timeoutForMediumTests="10"
- timeoutForLargeTests="60"
- bootstrap="../../spitfire/bootstrap.php"
- verbose="false">
- <filter>
- <whitelist processUncoveredFilesFromWhitelist="false">
- <directory suffix=".php">.</directory>
- <exclude>
- <directory suffix=".php">tests</directory>
- </exclude>
- </whitelist>
- </filter>
- <logging>
- <log type="coverage-clover" target="/tmp/coverage.xml"/>
- </logging>
-</phpunit>
\ No newline at end of file
diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -9,7 +9,18 @@
"email": "cesar@magic3w.com"
}
],
+ "scripts" : {
+ "test" : [
+ "./vendor/bin/phpstan analyse bin --level 5"
+ ],
+ "baseline" : [
+ "./vendor/bin/phpstan analyse bin --level 5 --generate-baseline"
+ ]
+ },
"require": {
"magic3w/permission-php-sdk": "dev-master"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^0.12.82"
}
}
diff --git a/composer.lock b/composer.lock
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "b058085fe630851f8f9398ff8a521c54",
+ "content-hash": "26b11d58a52b23b27930ef30dde82616",
"packages": [
{
"name": "magic3w/permission-php-sdk",
@@ -34,7 +34,68 @@
"time": "2020-08-26T15:10:23+00:00"
}
],
- "packages-dev": [],
+ "packages-dev": [
+ {
+ "name": "phpstan/phpstan",
+ "version": "0.12.82",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpstan/phpstan.git",
+ "reference": "3920f0fb0aff39263d3a4cb0bca120a67a1a6a11"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/3920f0fb0aff39263d3a4cb0bca120a67a1a6a11",
+ "reference": "3920f0fb0aff39263d3a4cb0bca120a67a1a6a11",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1|^8.0"
+ },
+ "conflict": {
+ "phpstan/phpstan-shim": "*"
+ },
+ "bin": [
+ "phpstan",
+ "phpstan.phar"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "0.12-dev"
+ }
+ },
+ "autoload": {
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "PHPStan - PHP Static Analysis Tool",
+ "support": {
+ "issues": "https://github.com/phpstan/phpstan/issues",
+ "source": "https://github.com/phpstan/phpstan/tree/0.12.82"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/ondrejmirtes",
+ "type": "github"
+ },
+ {
+ "url": "https://www.patreon.com/phpstan",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-03-19T06:08:17+00:00"
+ }
+ ],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
@@ -44,5 +105,5 @@
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
- "plugin-api-version": "1.1.0"
+ "plugin-api-version": "2.0.0"
}
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
new file mode 100644
--- /dev/null
+++ b/phpstan-baseline.neon
@@ -0,0 +1,927 @@
+parameters:
+ ignoreErrors:
+ -
+ message: "#^Property BaseController\\:\\:\\$ping has unknown class ping\\\\Ping as its type\\.$#"
+ count: 1
+ path: bin/classes/BaseController.php
+
+ -
+ message: "#^Property BaseController\\:\\:\\$chad has unknown class chad\\\\Chad as its type\\.$#"
+ count: 1
+ path: bin/classes/BaseController.php
+
+ -
+ message: "#^Property BaseController\\:\\:\\$sso \\(auth\\\\SSO\\) does not accept auth\\\\SSOCache\\.$#"
+ count: 1
+ path: bin/classes/BaseController.php
+
+ -
+ message: "#^Call to an undefined method auth\\\\SSOCache\\:\\:makeToken\\(\\)\\.$#"
+ count: 1
+ path: bin/classes/BaseController.php
+
+ -
+ message: "#^Property BaseController\\:\\:\\$user \\(object\\) does not accept bool\\|null\\.$#"
+ count: 1
+ path: bin/classes/BaseController.php
+
+ -
+ message: "#^Call to an undefined method auth\\\\SSOCache\\:\\:authApp\\(\\)\\.$#"
+ count: 1
+ path: bin/classes/BaseController.php
+
+ -
+ message: "#^Variable \\$signatures might not be defined\\.$#"
+ count: 1
+ path: bin/classes/auth/AppAuthentication.php
+
+ -
+ message: "#^Call to method getPath\\(\\) on an unknown class auth\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/auth/SSO.php
+
+ -
+ message: "#^Call to method getPort\\(\\) on an unknown class auth\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/auth/SSO.php
+
+ -
+ message: "#^Call to method getProtocol\\(\\) on an unknown class auth\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/auth/SSO.php
+
+ -
+ message: "#^Call to method getServer\\(\\) on an unknown class auth\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/auth/SSO.php
+
+ -
+ message: "#^Call to method getUser\\(\\) on an unknown class auth\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/auth/SSO.php
+
+ -
+ message: "#^Call to method getPassword\\(\\) on an unknown class auth\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/auth/SSO.php
+
+ -
+ message: "#^Instanceof between string\\|null and auth\\\\Token will always evaluate to false\\.$#"
+ count: 1
+ path: bin/classes/auth/SSO.php
+
+ -
+ message: "#^Variable \\$http_response_header in isset\\(\\) always exists and is not nullable\\.$#"
+ count: 1
+ path: bin/classes/auth/Token.php
+
+ -
+ message: "#^Parameter \\$url of method auth\\\\URLReflection\\:\\:fromURL\\(\\) has invalid typehint type auth\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/auth/URLReflection.php
+
+ -
+ message: "#^Return typehint of method auth\\\\URLReflection\\:\\:fromURL\\(\\) has invalid type auth\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/auth/URLReflection.php
+
+ -
+ message: "#^Class auth\\\\URLReflection constructor invoked with 8 parameters, 7 required\\.$#"
+ count: 1
+ path: bin/classes/auth/URLReflection.php
+
+ -
+ message: "#^Method defer\\\\URLIncinerator\\:\\:body\\(\\) should return spitfire\\\\core\\\\async\\\\Result but return statement is missing\\.$#"
+ count: 1
+ path: bin/classes/defer/URLIncinerator.php
+
+ -
+ message: "#^Call to method getPath\\(\\) on an unknown class figure\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/figure/SDK.php
+
+ -
+ message: "#^Call to method getPort\\(\\) on an unknown class figure\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/figure/SDK.php
+
+ -
+ message: "#^Call to method getProtocol\\(\\) on an unknown class figure\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/figure/SDK.php
+
+ -
+ message: "#^Call to method getServer\\(\\) on an unknown class figure\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/figure/SDK.php
+
+ -
+ message: "#^Call to method getUser\\(\\) on an unknown class figure\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/figure/SDK.php
+
+ -
+ message: "#^Call to sprintf contains 2 placeholders, 3 values given\\.$#"
+ count: 1
+ path: bin/classes/figure/SDK.php
+
+ -
+ message: "#^Undefined variable\\: \\$secret$#"
+ count: 1
+ path: bin/classes/figure/SDK.php
+
+ -
+ message: "#^Parameter \\$url of method figure\\\\URLReflection\\:\\:fromURL\\(\\) has invalid typehint type figure\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/figure/URLReflection.php
+
+ -
+ message: "#^Return typehint of method figure\\\\URLReflection\\:\\:fromURL\\(\\) has invalid type figure\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/figure/URLReflection.php
+
+ -
+ message: "#^Class figure\\\\URLReflection constructor invoked with 8 parameters, 7 required\\.$#"
+ count: 1
+ path: bin/classes/figure/URLReflection.php
+
+ -
+ message: "#^Negated boolean expression is always true\\.$#"
+ count: 1
+ path: bin/classes/signature/Signature.php
+
+ -
+ message: "#^Result of \\|\\| is always true\\.$#"
+ count: 1
+ path: bin/classes/signature/Signature.php
+
+ -
+ message: "#^Parameter \\#5 \\$context of class signature\\\\Signature constructor expects string, array\\<int, string\\> given\\.$#"
+ count: 1
+ path: bin/classes/signature/Signature.php
+
+ -
+ message: "#^Parameter \\#7 \\$salt of class signature\\\\Signature constructor expects string\\|null, signature\\\\Checksum given\\.$#"
+ count: 1
+ path: bin/classes/signature/Signature.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$task\\.$#"
+ count: 1
+ path: bin/classes/spitfire/core/async/AsyncModel.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$result\\.$#"
+ count: 1
+ path: bin/classes/spitfire/core/async/AsyncModel.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$status\\.$#"
+ count: 1
+ path: bin/classes/spitfire/core/async/AsyncModel.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$ttl\\.$#"
+ count: 1
+ path: bin/classes/spitfire/core/async/AsyncModel.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$started\\.$#"
+ count: 1
+ path: bin/classes/spitfire/core/async/AsyncModel.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$scheduled\\.$#"
+ count: 1
+ path: bin/classes/spitfire/core/async/AsyncModel.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$supersedes\\.$#"
+ count: 1
+ path: bin/classes/spitfire/core/async/AsyncModel.php
+
+ -
+ message: "#^Method spitfire\\\\core\\\\async\\\\AsyncModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/classes/spitfire/core/async/AsyncModel.php
+
+ -
+ message: "#^Class publicException referenced with incorrect case\\: PublicException\\.$#"
+ count: 1
+ path: bin/controllers/account.php
+
+ -
+ message: "#^Negated boolean expression is always false\\.$#"
+ count: 1
+ path: bin/controllers/avatar.php
+
+ -
+ message: "#^Negated boolean expression is always false\\.$#"
+ count: 1
+ path: bin/controllers/banner.php
+
+ -
+ message: "#^Negated boolean expression is always false\\.$#"
+ count: 1
+ path: bin/controllers/bio.php
+
+ -
+ message: "#^Class publicException referenced with incorrect case\\: PublicException\\.$#"
+ count: 1
+ path: bin/controllers/bio.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\ComputedModel\\:\\:\\$app\\.$#"
+ count: 1
+ path: bin/controllers/definitions/computed.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\ComputedModel\\:\\:\\$source\\.$#"
+ count: 1
+ path: bin/controllers/definitions/computed.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\ComputedModel\\:\\:\\$target\\.$#"
+ count: 1
+ path: bin/controllers/definitions/computed.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\ComputedModel\\:\\:\\$hidden\\.$#"
+ count: 1
+ path: bin/controllers/definitions/computed.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\GroupModel\\:\\:\\$node\\.$#"
+ count: 7
+ path: bin/controllers/definitions/group.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\GroupModel\\:\\:\\$title\\.$#"
+ count: 1
+ path: bin/controllers/definitions/group.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\GroupModel\\:\\:\\$description\\.$#"
+ count: 1
+ path: bin/controllers/definitions/group.php
+
+ -
+ message: "#^PHPDoc tag @throws with type definitions\\\\PublicException is not subtype of Throwable$#"
+ count: 1
+ path: bin/controllers/definitions/group.php
+
+ -
+ message: "#^Negated boolean expression is always false\\.$#"
+ count: 1
+ path: bin/controllers/definitions/group.php
+
+ -
+ message: "#^Instantiated class definitions\\\\PublicException not found\\.$#"
+ count: 2
+ path: bin/controllers/definitions/group.php
+
+ -
+ message: "#^Throwing object of an unknown class definitions\\\\PublicException\\.$#"
+ count: 2
+ path: bin/controllers/definitions/group.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\GroupModel\\:\\:\\$node\\.$#"
+ count: 1
+ path: bin/controllers/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\SettingModel\\:\\:\\$caption\\.$#"
+ count: 1
+ path: bin/controllers/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\SettingModel\\:\\:\\$description\\.$#"
+ count: 1
+ path: bin/controllers/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\SettingModel\\:\\:\\$additional\\.$#"
+ count: 1
+ path: bin/controllers/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\SettingModel\\:\\:\\$node\\.$#"
+ count: 4
+ path: bin/controllers/definitions/setting.php
+
+ -
+ message: "#^Negated boolean expression is always false\\.$#"
+ count: 1
+ path: bin/controllers/displayname.php
+
+ -
+ message: "#^Class publicException referenced with incorrect case\\: PublicException\\.$#"
+ count: 1
+ path: bin/controllers/displayname.php
+
+ -
+ message: "#^Parameter \\$username of method PrivacyController\\:\\:remove\\(\\) has invalid typehint type type\\.$#"
+ count: 1
+ path: bin/controllers/privacy.php
+
+ -
+ message: "#^Negated boolean expression is always false\\.$#"
+ count: 1
+ path: bin/controllers/setting.php
+
+ -
+ message: "#^Negated boolean expression is always false\\.$#"
+ count: 2
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Parameter \\#3 \\$errors of class spitfire\\\\validation\\\\ValidationException constructor expects array\\<spitfire\\\\validation\\\\ValidationError\\>, array\\<int, string\\> given\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Undefined variable\\: \\$url$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$removed\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$_id\\.$#"
+ count: 2
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Parameter \\$confirm of method URLController\\:\\:verify\\(\\) has invalid typehint type type\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Return typehint of method URLController\\:\\:verify\\(\\) has invalid type type\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$requested\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$url\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$verified\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Method URLController\\:\\:verify\\(\\) should return type but empty return statement found\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Method URLController\\:\\:verify\\(\\) should return type but return statement is missing\\.$#"
+ count: 1
+ path: bin/controllers/url.php
+
+ -
+ message: "#^Variable \\$message might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/500.php
+
+ -
+ message: "#^Variable \\$moreInfo might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/500.php
+
+ -
+ message: "#^Variable \\$code might not be defined\\.$#"
+ count: 2
+ path: bin/error_pages/default.json.php
+
+ -
+ message: "#^Variable \\$exception might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/default.json.php
+
+ -
+ message: "#^Variable \\$message might not be defined\\.$#"
+ count: 2
+ path: bin/error_pages/default.json.php
+
+ -
+ message: "#^Variable \\$code might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/default.php
+
+ -
+ message: "#^Variable \\$message might not be defined\\.$#"
+ count: 2
+ path: bin/error_pages/default.php
+
+ -
+ message: "#^Parameter \\#2 \\$newvalue of function ini_set expects string, true given\\.$#"
+ count: 1
+ path: bin/error_pages/default.php
+
+ -
+ message: "#^Variable \\$exception might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/default.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/avatar.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$figure\\.$#"
+ count: 1
+ path: bin/models/avatar.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/models/avatar.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/avatar.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$expires\\.$#"
+ count: 1
+ path: bin/models/avatar.php
+
+ -
+ message: "#^Method AvatarModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/avatar.php
+
+ -
+ message: "#^Access to an undefined property AvatarModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/avatar.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/banner.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$figure\\.$#"
+ count: 1
+ path: bin/models/banner.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/models/banner.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/banner.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$expires\\.$#"
+ count: 1
+ path: bin/models/banner.php
+
+ -
+ message: "#^Method BannerModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/banner.php
+
+ -
+ message: "#^Access to an undefined property BannerModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/banner.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/bio.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$body\\.$#"
+ count: 1
+ path: bin/models/bio.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/bio.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$expires\\.$#"
+ count: 1
+ path: bin/models/bio.php
+
+ -
+ message: "#^Method BioModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/bio.php
+
+ -
+ message: "#^Access to an undefined property BioModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/bio.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$app\\.$#"
+ count: 1
+ path: bin/models/definitions/computed.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$source\\.$#"
+ count: 1
+ path: bin/models/definitions/computed.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$target\\.$#"
+ count: 1
+ path: bin/models/definitions/computed.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$transform\\.$#"
+ count: 1
+ path: bin/models/definitions/computed.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$hidden\\.$#"
+ count: 1
+ path: bin/models/definitions/computed.php
+
+ -
+ message: "#^Method definitions\\\\ComputedModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/definitions/computed.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$node\\.$#"
+ count: 1
+ path: bin/models/definitions/group.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$title\\.$#"
+ count: 1
+ path: bin/models/definitions/group.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$description\\.$#"
+ count: 1
+ path: bin/models/definitions/group.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$icon\\.$#"
+ count: 1
+ path: bin/models/definitions/group.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/models/definitions/group.php
+
+ -
+ message: "#^Method definitions\\\\GroupModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/definitions/group.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$parent\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$ordinal\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$readonly\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$source\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$updated\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$deleted\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$key\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Method definitions\\\\NodeModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\NodeModel\\:\\:\\$parent\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\NodeModel\\:\\:\\$ordinal\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\NodeModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property definitions\\\\NodeModel\\:\\:\\$updated\\.$#"
+ count: 1
+ path: bin/models/definitions/node.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$node\\.$#"
+ count: 1
+ path: bin/models/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$scope\\.$#"
+ count: 1
+ path: bin/models/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$caption\\.$#"
+ count: 1
+ path: bin/models/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$description\\.$#"
+ count: 1
+ path: bin/models/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$type\\.$#"
+ count: 1
+ path: bin/models/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$additional\\.$#"
+ count: 1
+ path: bin/models/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$icon\\.$#"
+ count: 1
+ path: bin/models/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/models/definitions/setting.php
+
+ -
+ message: "#^Method definitions\\\\SettingModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/definitions/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/displayname.php
+
+ -
+ message: "#^Access to private property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$name\\.$#"
+ count: 1
+ path: bin/models/displayname.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/displayname.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$expires\\.$#"
+ count: 1
+ path: bin/models/displayname.php
+
+ -
+ message: "#^Method DisplayNameModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/displayname.php
+
+ -
+ message: "#^Access to an undefined property DisplayNameModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/displayname.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$setting\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$value\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$updated\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Method SettingModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Parameter \\$field of method SettingModel\\:\\:__set\\(\\) has invalid typehint type type\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Parameter \\$value of method SettingModel\\:\\:__set\\(\\) has invalid typehint type type\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Return typehint of method SettingModel\\:\\:__set\\(\\) has invalid type type\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Strict comparison using \\=\\=\\= between type and 'value' will always evaluate to false\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property SettingModel\\:\\:\\$setting\\.$#"
+ count: 2
+ path: bin/models/setting.php
+
+ -
+ message: "#^Negated boolean expression is always false\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property SettingModel\\:\\:\\$sso\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property SettingModel\\:\\:\\$value\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to offset 'figure' on an unknown class type\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to offset 'secret' on an unknown class type\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Call to function is_string\\(\\) with type will always evaluate to false\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Unreachable statement \\- code above always terminates\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property SettingModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property SettingModel\\:\\:\\$updated\\.$#"
+ count: 1
+ path: bin/models/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$ordinal\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$url\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$verified\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$requested\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$removed\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Method URLModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Access to an undefined property URLModel\\:\\:\\$ordinal\\.$#"
+ count: 1
+ path: bin/models/url.php
+
+ -
+ message: "#^Method UserModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/user.php
+
+ -
+ message: "#^Parameter \\#2 \\$target of method spitfire\\\\core\\\\router\\\\Routable\\:\\:request\\(\\) expects array\\<string\\>\\|Closure\\|string, array\\('controller' \\=\\> array\\('definitions', 'group'\\), 'action' \\=\\> '\\:action'\\) given\\.$#"
+ count: 1
+ path: bin/settings/routes.php
+
+ -
+ message: "#^Parameter \\#2 \\$target of method spitfire\\\\core\\\\router\\\\Routable\\:\\:request\\(\\) expects array\\<string\\>\\|Closure\\|string, array\\('controller' \\=\\> array\\('definitions', 'setting'\\), 'action' \\=\\> '\\:action'\\) given\\.$#"
+ count: 1
+ path: bin/settings/routes.php
+
+ -
+ message: "#^Parameter \\#2 \\$target of method spitfire\\\\core\\\\router\\\\Routable\\:\\:request\\(\\) expects array\\<string\\>\\|Closure\\|string, array\\('controller' \\=\\> array\\('definitions', 'computed'\\), 'action' \\=\\> '\\:action'\\) given\\.$#"
+ count: 1
+ path: bin/settings/routes.php
+
diff --git a/phpstan.neon b/phpstan.neon
new file mode 100644
--- /dev/null
+++ b/phpstan.neon
@@ -0,0 +1,8 @@
+parameters:
+ scanDirectories:
+ - spitfire/
+ excludePaths:
+ analyse:
+ - bin/templates
+includes:
+ - phpstan-baseline.neon
\ No newline at end of file

File Metadata

Mime Type
text/plain
Expires
Apr 12 2021, 8:25 PM (9 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6098
Default Alt Text
D650.diff (35 KB)

Event Timeline