mirror of
https://github.com/getgrav/grav.git
synced 2026-01-29 19:00:12 +01:00
Some phpstan issues (#2393)
* Fix bug, method init must be protected * Added phpstan level 0 * Added exclusions * Fix: incorrect case in Twig_SimpleFunction * Fix, no abstract properties, if properties used in methods let's set them * Fixed Psr\SimpleCache\InvalidArgumentException referenced with incorrect case * added exclusions * Fixed: Access to an undefined property Grav\Framework\Form\FormFlash::$uploadObjects. * Fixed: does not call parent constructor from Grav\Common\Iterator. * Fixed: does not call parent constructor from Grav\Common\Iterator. * Fixed: does not call parent constructor * Fixed: does not call parent constructor * Minor: correct type for inflector * Moved phpstan.neon out of public directory * Added exclusion * set GRAV_USER_INSTANCE to prevent LogiException in User * Exlude Stream:create * Minor: Missing storage property * Minor: Fixed missing properties (phpstan level 1) * Added type for $data * Minor: Ensure $langs is initialized * Fix possible bug in $http_response_header status code retrieval (PHP 7.1 only) * Added exclusion for $http_response_header (isset is actually not required) * Strict null check
This commit is contained in:
committed by
Matias Griese
parent
68d43a0c88
commit
ecd39421d6
6
tests/phpstan/phpstan-bootstrap.php
Normal file
6
tests/phpstan/phpstan-bootstrap.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
/**
|
||||
*To help phpstan dealing with LogicException in Common\User\User.php
|
||||
*/
|
||||
|
||||
define('GRAV_USER_INSTANCE', 'FLEX');
|
||||
Reference in New Issue
Block a user