Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add phpstan -deprecated and -unit
  • Loading branch information
SaraGfroerer committed Oct 24, 2020
commit 6a5040e67a815ed5f70919ed2085060de798b185
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
},
"require-dev": {
"phpspec/phpspec": "^6.2",
"phpunit/phpunit": "^9.3",
"phpstan/phpstan": "^0.12"
"phpunit/phpunit": "^9.4",
"phpstan/phpstan": "^0.12.51",
"phpstan/phpstan-deprecation-rules": "^0.12.4",
"phpstan/phpstan-phpunit": "^0.12.16",
"squizlabs/php_codesniffer": "^3.5.5"
},
"autoload": {
"psr-4": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '0.4.9',
'data' => 'O:42:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocNode":1:{s:8:"children";a:3:{i:0;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:9:"@template";s:5:"value";O:52:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\TemplateTagValueNode":3:{s:4:"name";s:9:"TNewValue";s:5:"bound";N;s:11:"description";s:0:"";}}i:1;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:6:"@param";s:5:"value";O:49:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\ParamTagValueNode":4:{s:4:"type";O:46:"PHPStan\\PhpDocParser\\Ast\\Type\\CallableTypeNode":3:{s:10:"identifier";O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:8:"callable";}s:10:"parameters";a:2:{i:0;O:55:"PHPStan\\PhpDocParser\\Ast\\Type\\CallableTypeParameterNode":5:{s:4:"type";O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:4:"TKey";}s:11:"isReference";b:0;s:10:"isVariadic";b:0;s:13:"parameterName";s:0:"";s:10:"isOptional";b:0;}i:1;O:55:"PHPStan\\PhpDocParser\\Ast\\Type\\CallableTypeParameterNode":5:{s:4:"type";O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:6:"TValue";}s:11:"isReference";b:0;s:10:"isVariadic";b:0;s:13:"parameterName";s:0:"";s:10:"isOptional";b:0;}}s:10:"returnType";O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:9:"TNewValue";}}s:10:"isVariadic";b:0;s:13:"parameterName";s:9:"$callback";s:11:"description";s:0:"";}}i:2;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:7:"@return";s:5:"value";O:50:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\ReturnTagValueNode":2:{s:4:"type";O:45:"PHPStan\\PhpDocParser\\Ast\\Type\\GenericTypeNode":2:{s:4:"type";O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:3:"Map";}s:12:"genericTypes";a:2:{i:0;O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:4:"TKey";}i:1;O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:9:"TNewValue";}}}s:11:"description";s:0:"";}}}}',
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '1603454189',
'data' =>
array (
0 =>
array (
'filename' => 'phar:///home/khb-core/current/www/data/Hacktoberfest/php-structure/php-structure-check/vendor/phpstan/phpstan/phpstan/stubs/WeakReference.stub',
'modifiedTime' => 1603454189,
),
),
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '0.4.9',
'data' => 'O:42:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocNode":1:{s:8:"children";a:1:{i:0;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:7:"@return";s:5:"value";O:50:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\ReturnTagValueNode":2:{s:4:"type";O:45:"PHPStan\\PhpDocParser\\Ast\\Type\\GenericTypeNode":2:{s:4:"type";O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:5:"Stack";}s:12:"genericTypes";a:1:{i:0;O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:6:"TValue";}}}s:11:"description";s:0:"";}}}}',
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '1603454189',
'data' =>
array (
0 =>
array (
'filename' => 'phar:///home/khb-core/current/www/data/Hacktoberfest/php-structure/php-structure-check/vendor/phpstan/phpstan/phpstan/stubs/ReflectionFunctionAbstract.stub',
'modifiedTime' => 1603454189,
),
),
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '1603454189',
'data' =>
array (
0 =>
array (
'filename' => 'phar:///home/khb-core/current/www/data/Hacktoberfest/php-structure/php-structure-check/vendor/phpstan/phpstan/phpstan/stubs/ReflectionClass.stub',
'modifiedTime' => 1603454189,
),
),
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '/home/khb-core/current/www/data/Hacktoberfest/php-structure/php-structure-check/src/Type/IntType.php-1603543737',
'data' =>
array (
'1b6e332f9601eb7172f28688d8d46d12' =>
PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array(
'phpDocString' => '/**
* @param mixed $value
*/',
'nameScope' =>
PHPStan\Analyser\NameScope::__set_state(array(
'namespace' => 'Cubicl\\StructureCheck\\Type',
'uses' =>
array (
'error' => 'Cubicl\\StructureCheck\\Error',
'result' => 'Cubicl\\StructureCheck\\Result',
'resultinterface' => 'Cubicl\\StructureCheck\\ResultInterface',
),
'className' => 'Cubicl\\StructureCheck\\Type\\IntType',
'functionName' => 'check',
'templateTypeMap' =>
PHPStan\Type\Generic\TemplateTypeMap::__set_state(array(
'types' =>
array (
),
)),
)),
)),
),
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '0.4.9',
'data' => 'O:42:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocNode":1:{s:8:"children";a:4:{i:0;O:46:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTextNode":1:{s:4:"text";s:95:"Objects implementing JsonSerializable
can customize their JSON representation when encoded with";}i:1;O:46:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTextNode":1:{s:4:"text";s:19:"<b>json_encode</b>.";}i:2;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:5:"@link";s:5:"value";O:51:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\GenericTagValueNode":1:{s:5:"value";s:52:"https://php.net/manual/en/class.jsonserializable.php";}}i:3;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:6:"@since";s:5:"value";O:51:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\GenericTagValueNode":1:{s:5:"value";s:3:"5.4";}}}}',
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '0.4.9',
'data' => 'O:42:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocNode":1:{s:8:"children";a:3:{i:0;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:9:"@template";s:5:"value";O:52:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\TemplateTagValueNode":3:{s:4:"name";s:7:"TValue2";s:5:"bound";N;s:11:"description";s:0:"";}}i:1;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:6:"@param";s:5:"value";O:49:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\ParamTagValueNode":4:{s:4:"type";O:45:"PHPStan\\PhpDocParser\\Ast\\Type\\GenericTypeNode":2:{s:4:"type";O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:3:"Set";}s:12:"genericTypes";a:1:{i:0;O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:7:"TValue2";}}}s:10:"isVariadic";b:0;s:13:"parameterName";s:4:"$set";s:11:"description";s:0:"";}}i:2;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:7:"@return";s:5:"value";O:50:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\ReturnTagValueNode":2:{s:4:"type";O:45:"PHPStan\\PhpDocParser\\Ast\\Type\\GenericTypeNode":2:{s:4:"type";O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:3:"Set";}s:12:"genericTypes";a:1:{i:0;O:50:"PHPStan\\PhpDocParser\\Ast\\Type\\IntersectionTypeNode":1:{s:5:"types";a:2:{i:0;O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:6:"TValue";}i:1;O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:7:"TValue2";}}}}}s:11:"description";s:0:"";}}}}',
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '1603454189',
'data' =>
array (
0 =>
array (
'filename' => 'phar:///home/khb-core/current/www/data/Hacktoberfest/php-structure/php-structure-check/vendor/phpstan/phpstan/phpstan/stubs/ArrayObject.stub',
'modifiedTime' => 1603454189,
),
),
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '1596634130',
'data' =>
array (
0 =>
array (
'filename' => '/home/khb-core/current/www/data/Hacktoberfest/php-structure/php-structure-check/vendor/phpstan/phpstan-phpunit/stubs/MockBuilder.stub',
'modifiedTime' => 1596634130,
),
),
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '0.4.9',
'data' => 'O:42:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocNode":1:{s:8:"children";a:1:{i:0;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:4:"@var";s:5:"value";O:47:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\VarTagValueNode":3:{s:4:"type";O:48:"PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode":1:{s:4:"name";s:6:"string";}s:12:"variableName";s:0:"";s:11:"description";s:0:"";}}}}',
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php declare(strict_types = 1);

return PHPStan\Cache\CacheItem::__set_state(array(
'variableKey' => '0.4.9',
'data' => 'O:42:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocNode":1:{s:8:"children";a:2:{i:0;O:46:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTextNode":1:{s:4:"text";s:27:"Representation of time zone";}i:1;O:45:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode":2:{s:4:"name";s:5:"@link";s:5:"value";O:51:"PHPStan\\PhpDocParser\\Ast\\PhpDoc\\GenericTagValueNode":1:{s:5:"value";s:48:"https://php.net/manual/en/class.datetimezone.php";}}}}',
));
Loading