Page MenuHomePhabricator

D648.id2033.diff
No OneTemporary

D648.id2033.diff

diff --git a/bin/models/app.php b/bin/models/app.php
--- a/bin/models/app.php
+++ b/bin/models/app.php
@@ -1,6 +1,7 @@
<?php
use spitfire\Model;
+use spitfire\model\fields\StringField;
use spitfire\storage\database\Schema;
/*
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,9 +9,20 @@
"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",
"spitfire/dependency-provider": "dev-master",
"magic3w/cptn-h00k-sdk-php": "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": "1a502877aee5ee67d18848929820efb2",
+ "content-hash": "ce65327170bb6dca0d90c065c2e4262d",
"packages": [
{
"name": "magic3w/cptn-h00k-sdk-php",
@@ -138,7 +138,68 @@
"time": "2020-08-21T08:34:50+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": {
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
new file mode 100644
--- /dev/null
+++ b/phpstan-baseline.neon
@@ -0,0 +1,1072 @@
+parameters:
+ ignoreErrors:
+ -
+ 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: "#^Call to an undefined method auth\\\\SSOCache\\:\\:makeSignature\\(\\)\\.$#"
+ 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: "#^Parameter \\$msgid of method controllers\\\\URLController\\:\\:redirect\\(\\) has invalid typehint type controllers\\\\type\\.$#"
+ count: 1
+ path: bin/classes/controllers/UrlController.php
+
+ -
+ message: "#^Right side of && is always true\\.$#"
+ count: 1
+ path: bin/classes/controllers/UrlController.php
+
+ -
+ message: "#^Parameter \\#2 \\$proj of function ftok expects string, int given\\.$#"
+ count: 1
+ path: bin/classes/cron/FlipFlop.php
+
+ -
+ message: "#^Constructor of class cron\\\\TimerFlipFlop has an unused parameter \\$filename\\.$#"
+ count: 1
+ path: bin/classes/cron/TimerFlipFlop.php
+
+ -
+ message: "#^Undefined variable\\: \\$email$#"
+ count: 4
+ path: bin/classes/mail/MailGunTransport.php
+
+ -
+ message: "#^Undefined variable\\: \\$model$#"
+ count: 5
+ path: bin/classes/mail/SendInBlueTransport.php
+
+ -
+ message: "#^Access to an undefined property OutgoingModel\\:\\:\\$message\\.$#"
+ count: 1
+ path: bin/classes/mail/layout/Layout.php
+
+ -
+ message: "#^Instantiated class mail\\\\layout\\\\PrivateException not found\\.$#"
+ count: 1
+ path: bin/classes/mail/layout/Layout.php
+
+ -
+ message: "#^Throwing object of an unknown class mail\\\\layout\\\\PrivateException\\.$#"
+ count: 1
+ path: bin/classes/mail/layout/Layout.php
+
+ -
+ message: "#^Access to an undefined property OutgoingModel\\:\\:\\$_id\\.$#"
+ count: 3
+ path: bin/classes/mail/layout/Layout.php
+
+ -
+ message: "#^Access to an undefined property OutgoingModel\\:\\:\\$secret\\.$#"
+ count: 2
+ path: bin/classes/mail/layout/Layout.php
+
+ -
+ message: "#^PHPDoc tag @param references unknown parameter\\: \\$reader$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/Domain.php
+
+ -
+ message: "#^PHPDoc tag @param references unknown parameter\\: \\$writer$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/Domain.php
+
+ -
+ message: "#^PHPDoc tag @param has invalid value \\(\\$hostname string\\)\\: Unexpected token \"\\$hostname\", expected type at offset 73$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/Domain.php
+
+ -
+ message: "#^PHPDoc tag @param has invalid value \\(\\$hostname string\\)\\: Unexpected token \"\\$hostname\", expected type at offset 73$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/IP.php
+
+ -
+ message: "#^Parameter \\#1 \\$host of method mail\\\\spam\\\\domain\\\\StorageInterface\\:\\:isWhitelisted\\(\\) expects string, mail\\\\spam\\\\domain\\\\Domain given\\.$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/SpamDomainTester.php
+
+ -
+ message: "#^Parameter \\#1 \\$host of method mail\\\\spam\\\\domain\\\\StorageInterface\\:\\:isBlacklisted\\(\\) expects string, mail\\\\spam\\\\domain\\\\Domain given\\.$#"
+ count: 2
+ path: bin/classes/mail/spam/domain/SpamDomainTester.php
+
+ -
+ message: "#^Parameter \\#1 \\$host \\(mail\\\\spam\\\\domain\\\\implementation\\\\type\\) of method mail\\\\spam\\\\domain\\\\implementation\\\\SpamDomainModelReader\\:\\:isBlacklisted\\(\\) should be compatible with parameter \\$host \\(string\\) of method mail\\\\spam\\\\domain\\\\StorageInterface\\:\\:isBlacklisted\\(\\)$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Parameter \\$host of method mail\\\\spam\\\\domain\\\\implementation\\\\SpamDomainModelReader\\:\\:isBlacklisted\\(\\) has invalid typehint type mail\\\\spam\\\\domain\\\\implementation\\\\type\\.$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Return typehint of method mail\\\\spam\\\\domain\\\\implementation\\\\SpamDomainModelReader\\:\\:isBlacklisted\\(\\) has invalid type mail\\\\spam\\\\domain\\\\implementation\\\\type\\.$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Call to method getBase64\\(\\) on an unknown class mail\\\\spam\\\\domain\\\\implementation\\\\type\\.$#"
+ count: 2
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Call to method getHostname\\(\\) on an unknown class mail\\\\spam\\\\domain\\\\implementation\\\\type\\.$#"
+ count: 2
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Strict comparison using \\=\\=\\= between mail\\\\spam\\\\domain\\\\implementation\\\\type and null will always evaluate to false\\.$#"
+ count: 2
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Method mail\\\\spam\\\\domain\\\\implementation\\\\SpamDomainModelReader\\:\\:isBlacklisted\\(\\) should return mail\\\\spam\\\\domain\\\\implementation\\\\type but returns bool\\.$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Parameter \\#1 \\$host \\(mail\\\\spam\\\\domain\\\\implementation\\\\type\\) of method mail\\\\spam\\\\domain\\\\implementation\\\\SpamDomainModelReader\\:\\:isWhitelisted\\(\\) should be compatible with parameter \\$host \\(string\\) of method mail\\\\spam\\\\domain\\\\StorageInterface\\:\\:isWhitelisted\\(\\)$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Parameter \\$host of method mail\\\\spam\\\\domain\\\\implementation\\\\SpamDomainModelReader\\:\\:isWhitelisted\\(\\) has invalid typehint type mail\\\\spam\\\\domain\\\\implementation\\\\type\\.$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Return typehint of method mail\\\\spam\\\\domain\\\\implementation\\\\SpamDomainModelReader\\:\\:isWhitelisted\\(\\) has invalid type mail\\\\spam\\\\domain\\\\implementation\\\\type\\.$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Method mail\\\\spam\\\\domain\\\\implementation\\\\SpamDomainModelReader\\:\\:isWhitelisted\\(\\) should return mail\\\\spam\\\\domain\\\\implementation\\\\type but returns bool\\.$#"
+ count: 1
+ path: bin/classes/mail/spam/domain/implementation/SpamDomainModelReader.php
+
+ -
+ message: "#^Return typehint of method mail\\\\transport\\\\Email\\:\\:plain\\(\\) has invalid type mail\\\\transport\\\\type\\.$#"
+ count: 1
+ path: bin/classes/mail/transport/Email.php
+
+ -
+ message: "#^Method mail\\\\transport\\\\Email\\:\\:plain\\(\\) should return mail\\\\transport\\\\type but returns string\\.$#"
+ count: 1
+ path: bin/classes/mail/transport/Email.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: "#^Instantiated class IntegerField not found\\.$#"
+ count: 3
+ 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: "#^Instantiated class Reference not found\\.$#"
+ 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: "#^Negated boolean expression is always false\\.$#"
+ count: 1
+ path: bin/controllers/attachment.php
+
+ -
+ message: "#^Class publicException referenced with incorrect case\\: PublicException\\.$#"
+ count: 4
+ path: bin/controllers/attachment.php
+
+ -
+ message: "#^Access to an undefined property AttachmentModel\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/controllers/attachment.php
+
+ -
+ message: "#^Access to an undefined property AttachmentModel\\:\\:\\$name\\.$#"
+ count: 1
+ path: bin/controllers/attachment.php
+
+ -
+ message: "#^Access to an undefined property AttachmentModel\\:\\:\\$file\\.$#"
+ count: 1
+ path: bin/controllers/attachment.php
+
+ -
+ message: "#^Parameter \\#1 \\$body of method spitfire\\\\core\\\\Response\\:\\:setBody\\(\\) expects spitfire\\\\core\\\\Context\\|string, spitfire\\\\storage\\\\objectStorage\\\\Blob given\\.$#"
+ count: 1
+ path: bin/controllers/attachment.php
+
+ -
+ message: "#^Access to an undefined property OutgoingModel\\:\\:\\$message\\.$#"
+ count: 3
+ path: bin/controllers/event.php
+
+ -
+ message: "#^Access to an undefined property EventController\\:\\:\\$hook\\.$#"
+ count: 1
+ path: bin/controllers/event.php
+
+ -
+ message: "#^Access to an undefined property OutgoingModel\\:\\:\\$mailbox\\.$#"
+ count: 2
+ path: bin/controllers/event.php
+
+ -
+ message: "#^Left side of && is always true\\.$#"
+ count: 1
+ path: bin/controllers/event.php
+
+ -
+ message: "#^Access to an undefined property OutgoingModel\\:\\:\\$_id\\.$#"
+ count: 2
+ path: bin/controllers/event.php
+
+ -
+ message: "#^Parameter \\$inbox of method InboxController\\:\\:delete\\(\\) has invalid typehint type InboxModel\\.$#"
+ count: 1
+ path: bin/controllers/inbox.php
+
+ -
+ message: "#^Access to property \\$app on an unknown class InboxModel\\.$#"
+ count: 1
+ path: bin/controllers/inbox.php
+
+ -
+ message: "#^Call to method delete\\(\\) on an unknown class InboxModel\\.$#"
+ count: 1
+ path: bin/controllers/inbox.php
+
+ -
+ message: "#^Call to an undefined method mail\\\\incoming\\\\ProcessorInterface\\:\\:incoming\\(\\)\\.$#"
+ count: 1
+ path: bin/controllers/inbox.php
+
+ -
+ message: "#^Parameter \\#1 \\$location of method spitfire\\\\storage\\\\objectStorage\\\\DriveDispatcher\\:\\:retrieve\\(\\) expects spitfire\\\\storage\\\\objectStorage\\\\type, string given\\.$#"
+ count: 1
+ path: bin/controllers/inbox.php
+
+ -
+ message: "#^Left side of && is always true\\.$#"
+ count: 1
+ path: bin/controllers/inbox.php
+
+ -
+ message: "#^PHPDoc tag @throws with type Exception\\|HTTPMethodException is not subtype of Throwable$#"
+ count: 1
+ path: bin/controllers/message.php
+
+ -
+ message: "#^Instantiated class HTTPMethodException not found\\.$#"
+ count: 1
+ path: bin/controllers/message.php
+
+ -
+ message: "#^Throwing object of an unknown class HTTPMethodException\\.$#"
+ count: 1
+ path: bin/controllers/message.php
+
+ -
+ message: "#^If condition is always true\\.$#"
+ count: 1
+ path: bin/controllers/message.php
+
+ -
+ message: "#^Left side of && is always true\\.$#"
+ count: 1
+ path: bin/controllers/message.php
+
+ -
+ message: "#^Call to static method startsWith\\(\\) on an unknown class Strings\\.$#"
+ count: 2
+ path: bin/controllers/message.php
+
+ -
+ message: "#^Call to static method ellipsis\\(\\) on an unknown class Strings\\.$#"
+ count: 1
+ path: bin/controllers/message.php
+
+ -
+ message: "#^PHPDoc tag @throws with type Exception\\|HTTPMethodException is not subtype of Throwable$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Instantiated class HTTPMethodException not found\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Throwing object of an unknown class HTTPMethodException\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^If condition is always true\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Variable \\$mailbox might not be defined\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Cannot access property \\$external on string\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Caught class ValidationException not found\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Call to method getResult\\(\\) on an unknown class ValidationException\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Caught class HTTPMethodException not found\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Access to an undefined property auth\\\\AppAuthentication\\:\\:\\$appID\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Access to property \\$app on an unknown class InboxModel\\.$#"
+ count: 1
+ path: bin/controllers/outbox.php
+
+ -
+ message: "#^Access to an undefined property OutgoingModel\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/controllers/outgoing.php
+
+ -
+ message: "#^Class publicException referenced with incorrect case\\: PublicException\\.$#"
+ count: 1
+ path: bin/controllers/outgoing.php
+
+ -
+ message: "#^Access to an undefined property OutgoingModel\\:\\:\\$message\\.$#"
+ count: 2
+ path: bin/controllers/outgoing.php
+
+ -
+ message: "#^Class publicException referenced with incorrect case\\: PublicException\\.$#"
+ count: 2
+ path: bin/controllers/route.php
+
+ -
+ message: "#^Access to an undefined property LayoutDirector\\:\\:\\$parameters\\.$#"
+ count: 1
+ path: bin/directors/layout.php
+
+ -
+ message: "#^Parameter \\#3 \\$offset of function strpos expects int, string given\\.$#"
+ count: 1
+ path: bin/directors/layout.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 \\$exception might not be defined\\.$#"
+ count: 2
+ path: bin/error_pages/default.json.php
+
+ -
+ message: "#^Variable \\$message might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/default.php
+
+ -
+ message: "#^Variable \\$moreInfo might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/default.php
+
+ -
+ message: "#^Variable \\$exception might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/spitfire/exceptions/PublicException/404.json.php
+
+ -
+ message: "#^Parameter \\#1 \\(void\\) of echo cannot be converted to string\\.$#"
+ count: 1
+ path: bin/error_pages/spitfire/exceptions/PublicException/404.php
+
+ -
+ message: "#^Result of function var_dump \\(void\\) is used\\.$#"
+ count: 1
+ path: bin/error_pages/spitfire/exceptions/PublicException/404.php
+
+ -
+ message: "#^Variable \\$exception might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/spitfire/exceptions/PublicException/404.php
+
+ -
+ message: "#^Variable \\$exception might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/spitfire/exceptions/PublicException/default.json.php
+
+ -
+ message: "#^Variable \\$exception might not be defined\\.$#"
+ count: 1
+ path: bin/error_pages/spitfire/exceptions/PublicException/default.php
+
+ -
+ message: "#^Variable \\$exception might not be defined\\.$#"
+ count: 3
+ path: bin/error_pages/spitfire/validation/ValidationException/default.json.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$appid\\.$#"
+ count: 1
+ path: bin/models/app.php
+
+ -
+ message: "#^Access to private property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$name\\.$#"
+ count: 1
+ path: bin/models/app.php
+
+ -
+ message: "#^Method AppModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/app.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$message\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Instantiated class Reference not found\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Access to private property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$name\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Instantiated class StringField not found\\.$#"
+ count: 4
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$name \\(string\\) does not accept StringField\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$content\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$length\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Instantiated class IntegerField not found\\.$#"
+ count: 2
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$file\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Method AttachmentModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Access to an undefined property AttachmentModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Access to an undefined property AttachmentModel\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/models/attachment.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$message\\.$#"
+ count: 1
+ path: bin/models/incoming.php
+
+ -
+ message: "#^Instantiated class Reference not found\\.$#"
+ count: 2
+ path: bin/models/incoming.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$irt\\.$#"
+ count: 1
+ path: bin/models/incoming.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/incoming.php
+
+ -
+ message: "#^Instantiated class IntegerField not found\\.$#"
+ count: 1
+ path: bin/models/incoming.php
+
+ -
+ message: "#^Method IncomingModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/incoming.php
+
+ -
+ message: "#^Access to an undefined property IncomingModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/incoming.php
+
+ -
+ message: "#^Access to private property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$name\\.$#"
+ count: 1
+ path: bin/models/layout.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$content\\.$#"
+ count: 1
+ path: bin/models/layout.php
+
+ -
+ message: "#^Method LayoutModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/layout.php
+
+ -
+ message: "#^Access to private property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$name\\.$#"
+ count: 1
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Instantiated class StringField not found\\.$#"
+ count: 5
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$name \\(string\\) does not accept StringField\\.$#"
+ count: 1
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$displayName\\.$#"
+ count: 1
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$external\\.$#"
+ count: 1
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$internal\\.$#"
+ count: 1
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$expires\\.$#"
+ count: 1
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Instantiated class IntegerField not found\\.$#"
+ count: 1
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$psk\\.$#"
+ count: 1
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Method MailboxModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/mailbox.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$to\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Instantiated class Reference not found\\.$#"
+ count: 2
+ path: bin/models/message.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$from\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$subject\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Instantiated class StringField not found\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$plain\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$html\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Instantiated class IntegerField not found\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$attachments\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Method MessageModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Access to an undefined property MessageModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/message.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$message\\.$#"
+ count: 1
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Instantiated class Reference not found\\.$#"
+ count: 2
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$mailbox\\.$#"
+ count: 1
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$scheduled\\.$#"
+ count: 1
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Instantiated class IntegerField not found\\.$#"
+ count: 4
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$delivered\\.$#"
+ count: 1
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$opened\\.$#"
+ count: 1
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$clicked\\.$#"
+ count: 1
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$meta\\.$#"
+ count: 1
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Instantiated class StringField not found\\.$#"
+ count: 2
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$secret\\.$#"
+ count: 1
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Method OutgoingModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/outgoing.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$origin\\.$#"
+ count: 1
+ path: bin/models/route.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$to\\.$#"
+ count: 1
+ path: bin/models/route.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$dispatchMechanism\\.$#"
+ count: 1
+ path: bin/models/route.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$dispatchTarget\\.$#"
+ count: 1
+ path: bin/models/route.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$owner\\.$#"
+ count: 1
+ path: bin/models/route.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$state\\.$#"
+ count: 1
+ path: bin/models/route.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$expires\\.$#"
+ count: 1
+ path: bin/models/route.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/route.php
+
+ -
+ message: "#^Method RouteModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/route.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$type\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Instantiated class IntegerField not found\\.$#"
+ count: 3
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$host\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Instantiated class StringField not found\\.$#"
+ count: 3
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$list\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$reason\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$deliverability\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$updated\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Method statistics\\\\DomainModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Access to an undefined property statistics\\\\DomainModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Access to an undefined property statistics\\\\DomainModel\\:\\:\\$updated\\.$#"
+ count: 1
+ path: bin/models/statistics/domain.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$event\\.$#"
+ count: 1
+ path: bin/models/statistics/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$first\\.$#"
+ count: 1
+ path: bin/models/statistics/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$domain\\.$#"
+ count: 1
+ path: bin/models/statistics/interaction.php
+
+ -
+ message: "#^Instantiated class Reference not found\\.$#"
+ count: 2
+ path: bin/models/statistics/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$message\\.$#"
+ count: 1
+ path: bin/models/statistics/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/statistics/interaction.php
+
+ -
+ message: "#^Instantiated class IntegerField not found\\.$#"
+ count: 1
+ path: bin/models/statistics/interaction.php
+
+ -
+ message: "#^Method statistics\\\\InteractionModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/statistics/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$key\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Instantiated class StringField not found\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$value\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$changedby\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Instantiated class Reference not found\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$changed\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Instantiated class IntegerField not found\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Call to method setPrimary\\(\\) on an unknown class StringField\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Method system\\\\SettingModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Call to static method get\\(\\) on an unknown class settings\\\\DefaultSettings\\.$#"
+ count: 1
+ path: bin/models/system/setting.php
+
+ -
+ message: "#^Method UserModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/user.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
Wed, Apr 14, 10:27 PM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6100
Default Alt Text
D648.id2033.diff (40 KB)

Event Timeline