-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Tried this tool against master: https://github.com/phpstan/phpstan
Gave me a little report we can have a look at:
$ phpstan -V
PHPStan - PHP Static Analysis Tool 0.9.2
$ phpstan analyse Pragma/ module.php routes/
18/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ---------------------------------------------------------------
Line Pragma/ORM/Relation.php
------ ---------------------------------------------------------------
174 Access to an undefined property Pragma\ORM\Relation::$col_on.
182 Access to an undefined property Pragma\ORM\Relation::$col_to.
268 Function Exception not found.
------ ---------------------------------------------------------------
------ ------------------------------------------------------------------------------------------
Line Pragma/ORM/QueryBuilder.php
------ ------------------------------------------------------------------------------------------
157 Method Pragma\ORM\QueryBuilder::get_resultset() invoked with 2 parameters, 0-1 required.
------ ------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------
Line Pragma/ORM/Model.php
------ ---------------------------------------------------------------------------
322 Call to static method generate() on an unknown class Webpatser\Uuid\Uuid.
333 Access to an undefined property Pragma\ORM\Model::$id.
351 Access to an undefined property Pragma\ORM\Model::$id.
------ ---------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------
Line Pragma/Router/Router.php
------ ------------------------------------------------------------------------------------------------------
136 Call to static method isEnabled() on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsManager.
137 Call to static method getManager() on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsManager.
282 Anonymous function has an unused use $callback.
294 Anonymous function has an unused use $callback.
------ ------------------------------------------------------------------------------------------------------
------ ----------------------------------------------------------------
Line Pragma/Router/RouterException.php
------ ----------------------------------------------------------------
25 Call to an undefined static method Exception::__constructor().
------ ----------------------------------------------------------------
------ -------------------------------------------------------------------------------------------------------------------------------------
Line Pragma/Helpers/Migrate.php
------ -------------------------------------------------------------------------------------------------------------------------------------
9 Parameter $event of method Pragma\Helpers\Migrate::postPackageInstall() has invalid typehint type Composer\Installer\PackageEvent.
18 Parameter $event of method Pragma\Helpers\Migrate::postPackageUpdate() has invalid typehint type Composer\Installer\PackageEvent.
27 Parameter $event of method Pragma\Helpers\Migrate::prePackageUninstall() has invalid typehint type Composer\Installer\PackageEvent.
56 Instantiated class Composer\Repository\InstalledFilesystemRepository not found.
56 Instantiated class Composer\Json\JsonFile not found.
------ -------------------------------------------------------------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------------
Line Pragma/Controller/BaseController.php
------ -----------------------------------------------------------------------------------------------------------
24 Call to static method isEnabled() on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsManager.
25 Access to constant CSRF_TAG_NAME on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsManager.
27 Access to constant CSRF_TAG_NAME on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsManager.
28 Access to constant CSRF_TAG_NAME on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsManager.
29 Access to constant CSRF_TAG_NAME on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsManager.
32 Call to static method getManager() on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsManager.
36 Instantiated class Pragma\Forms\CSRFTagsManager\CSRFTagsException not found.
36 Access to constant TAG_REQUESTED_MESS on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsException.
36 Access to constant TAG_REQUESTED on an unknown class Pragma\Forms\CSRFTagsManager\CSRFTagsException.
------ -----------------------------------------------------------------------------------------------------------
------ ----------------------------------------------------------------------------------------------------------------------
Line module.php
------ ----------------------------------------------------------------------------------------------------------------------
Class Pragma\Core\Module was not found while trying to analyse it - autoloading is probably not configured properly.
------ ----------------------------------------------------------------------------------------------------------------------
[ERROR] Found 27 errorsMetadata
Metadata
Assignees
Labels
No labels