Page MenuHomePhabricator

D642.id2027.diff
No OneTemporary

D642.id2027.diff

diff --git a/.gitignore b/.gitignore
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-/nbproject/private/
\ No newline at end of file
+/nbproject/private/
+/vendor/
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
new file mode 100644
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,25 @@
+{
+ "name": "magic3w/loot",
+ "description": "Loot is a reputation collection tool for microservice networks",
+ "type": "project",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "César de la Cal Bretschneider",
+ "email": "cesar@magic3w.com"
+ }
+ ],
+ "minimum-stability": "dev",
+ "prefer-stable": true,
+ "scripts" : {
+ "test" : [
+ "./vendor/bin/phpstan analyse bin --level 5"
+ ],
+ "baseline" : [
+ "./vendor/bin/phpstan analyse bin --level 5 --generate-baseline"
+ ]
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^0.12.82"
+ }
+}
diff --git a/composer.lock b/composer.lock
new file mode 100644
--- /dev/null
+++ b/composer.lock
@@ -0,0 +1,79 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "This file is @generated automatically"
+ ],
+ "content-hash": "d066ffee04566299619d98f006f0502f",
+ "packages": [],
+ "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": "dev",
+ "stability-flags": [],
+ "prefer-stable": true,
+ "prefer-lowest": false,
+ "platform": [],
+ "platform-dev": [],
+ "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,502 @@
+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\\:\\: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: "#^Call to method getPath\\(\\) on an unknown class ping\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/ping/Ping.php
+
+ -
+ message: "#^Call to method getPort\\(\\) on an unknown class ping\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/ping/Ping.php
+
+ -
+ message: "#^Call to method getProtocol\\(\\) on an unknown class ping\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/ping/Ping.php
+
+ -
+ message: "#^Call to method getServer\\(\\) on an unknown class ping\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/ping/Ping.php
+
+ -
+ message: "#^Call to method getUser\\(\\) on an unknown class ping\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/ping/Ping.php
+
+ -
+ message: "#^Call to an undefined method spitfire\\\\storage\\\\objectStorage\\\\NodeInterface\\:\\:make\\(\\)\\.$#"
+ count: 1
+ path: bin/classes/ping/Ping.php
+
+ -
+ message: "#^Parameter \\$url of method ping\\\\URLReflection\\:\\:fromURL\\(\\) has invalid typehint type ping\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/ping/URLReflection.php
+
+ -
+ message: "#^Return typehint of method ping\\\\URLReflection\\:\\:fromURL\\(\\) has invalid type ping\\\\Settings\\.$#"
+ count: 1
+ path: bin/classes/ping/URLReflection.php
+
+ -
+ message: "#^Class ping\\\\URLReflection constructor invoked with 8 parameters, 7 required\\.$#"
+ count: 1
+ path: bin/classes/ping/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: "#^Static call to instance method UserModel\\:\\:make\\(\\)\\.$#"
+ count: 1
+ path: bin/controllers/home.php
+
+ -
+ message: "#^Static call to instance method UserModel\\:\\:make\\(\\)\\.$#"
+ count: 2
+ path: bin/controllers/interaction.php
+
+ -
+ message: "#^Access to an undefined property QuestController\\:\\:\\$validation\\.$#"
+ count: 2
+ path: bin/controllers/quest.php
+
+ -
+ message: "#^Access to an undefined property RewardController\\:\\:\\$validation\\.$#"
+ count: 2
+ path: bin/controllers/reward.php
+
+ -
+ message: "#^Static call to instance method UserModel\\:\\:make\\(\\)\\.$#"
+ count: 2
+ path: bin/controllers/testimonial.php
+
+ -
+ message: "#^Cannot access property \\$_id on int\\.$#"
+ count: 4
+ path: bin/controllers/testimonial.php
+
+ -
+ message: "#^Cannot access property \\$_id on int\\<min, \\-1\\>\\|int\\<1, max\\>\\.$#"
+ count: 1
+ path: bin/controllers/testimonial.php
+
+ -
+ message: "#^Class publicException referenced with incorrect case\\: PublicException\\.$#"
+ count: 1
+ path: bin/controllers/user.php
+
+ -
+ message: "#^Static call to instance method UserModel\\:\\:make\\(\\)\\.$#"
+ count: 1
+ path: bin/controllers/user.php
+
+ -
+ message: "#^Comparison operation \"\\=\\=\" between \\(array\\|float\\|int\\) and 0 results in an error\\.$#"
+ count: 1
+ path: bin/controllers/user.php
+
+ -
+ message: "#^Variable \\$last might not be defined\\.$#"
+ count: 1
+ path: bin/directors/interaction.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\\:\\:\\$quest\\.$#"
+ count: 1
+ path: bin/models/badge.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/badge.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/badge.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$expires\\.$#"
+ count: 1
+ path: bin/models/badge.php
+
+ -
+ message: "#^Method BadgeModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/badge.php
+
+ -
+ message: "#^Access to an undefined property BadgeModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/badge.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/history.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$balance\\.$#"
+ count: 1
+ path: bin/models/history.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$effective\\.$#"
+ count: 1
+ path: bin/models/history.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/history.php
+
+ -
+ message: "#^Method HistoryModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/history.php
+
+ -
+ message: "#^Access to an undefined property HistoryModel\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/history.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$src\\.$#"
+ count: 1
+ path: bin/models/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$tgt\\.$#"
+ count: 1
+ path: bin/models/interaction.php
+
+ -
+ message: "#^Access to private property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$name\\.$#"
+ count: 2
+ path: bin/models/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$value\\.$#"
+ count: 1
+ path: bin/models/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$caption\\.$#"
+ count: 1
+ path: bin/models/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$url\\.$#"
+ count: 1
+ path: bin/models/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$processed\\.$#"
+ count: 1
+ path: bin/models/interaction.php
+
+ -
+ message: "#^Method InteractionModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/interaction.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$color\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$icon\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to private property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$name\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$description\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$awardTo\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$activityName\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$threshold\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$perValue\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$birthRight\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$ttl\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Method QuestModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/quest.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$activityName\\.$#"
+ count: 1
+ path: bin/models/reward.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$score\\.$#"
+ count: 1
+ path: bin/models/reward.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$awardTo\\.$#"
+ count: 1
+ path: bin/models/reward.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$perValue\\.$#"
+ count: 1
+ path: bin/models/reward.php
+
+ -
+ message: "#^Method RewardModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/reward.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$interaction\\.$#"
+ count: 1
+ path: bin/models/score.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/score.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$rule\\.$#"
+ count: 1
+ path: bin/models/score.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$score\\.$#"
+ count: 1
+ path: bin/models/score.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/score.php
+
+ -
+ message: "#^Method ScoreModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/score.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$user\\.$#"
+ count: 1
+ path: bin/models/testimonial.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$client\\.$#"
+ count: 1
+ path: bin/models/testimonial.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$recommendation\\.$#"
+ count: 1
+ path: bin/models/testimonial.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$body\\.$#"
+ count: 1
+ path: bin/models/testimonial.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$response\\.$#"
+ count: 1
+ path: bin/models/testimonial.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$product\\.$#"
+ count: 1
+ path: bin/models/testimonial.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$created\\.$#"
+ count: 1
+ path: bin/models/testimonial.php
+
+ -
+ message: "#^Method TestimonialModel\\:\\:definitions\\(\\) should return spitfire\\\\storage\\\\database\\\\Schema but return statement is missing\\.$#"
+ count: 1
+ path: bin/models/testimonial.php
+
+ -
+ message: "#^Access to an undefined property spitfire\\\\storage\\\\database\\\\Schema\\:\\:\\$balanced\\.$#"
+ count: 1
+ path: bin/models/user.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 \\$value of method spitfire\\\\core\\\\Environment\\:\\:set\\(\\) expects string, int given\\.$#"
+ count: 2
+ path: bin/settings/environments.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, 10:34 AM (9 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6103
Default Alt Text
D642.id2027.diff (21 KB)

Event Timeline