mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit ea9cddd31bc7dc54320929633802db4916d75eee
ea9cddd31b
[PHPStan] Update PHPStan to 0.12.95 (#724)
This commit is contained in:
parent
e85011ce66
commit
f01d52fb6c
2
.github/workflows/along_other_packages.yaml
vendored
2
.github/workflows/along_other_packages.yaml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
|
||||
-
|
||||
name: 'Along PHPStan'
|
||||
install: composer require phpstan/phpstan:^0.12.94 --dev --ansi
|
||||
install: composer require phpstan/phpstan:^0.12.95 --dev --ansi
|
||||
|
||||
name: "PHP ${{ matrix.php_version }}"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
],
|
||||
"require": {
|
||||
"php": "^7.1|^8.0",
|
||||
"phpstan/phpstan": "0.12.94"
|
||||
"phpstan/phpstan": "0.12.95"
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
|
@ -5,8 +5,6 @@ namespace Rector\CodeQuality\Rector\ClassMethod;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\New_;
|
||||
use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Name\FullyQualified;
|
||||
use PhpParser\Node\NullableType;
|
||||
use PhpParser\Node\Param;
|
||||
@ -20,6 +18,7 @@ use PHPStan\Type\UnionType;
|
||||
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger;
|
||||
use Rector\CodeQuality\NodeManipulator\ClassMethodParameterTypeManipulator;
|
||||
use Rector\CodeQuality\NodeManipulator\ClassMethodReturnTypeManipulator;
|
||||
use Rector\Core\NodeAnalyzer\CallAnalyzer;
|
||||
use Rector\Core\NodeAnalyzer\ParamAnalyzer;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\ValueObject\MethodName;
|
||||
@ -56,12 +55,17 @@ final class DateTimeToDateTimeInterfaceRector extends \Rector\Core\Rector\Abstra
|
||||
* @var \Rector\CodeQuality\NodeManipulator\ClassMethodParameterTypeManipulator
|
||||
*/
|
||||
private $classMethodParameterTypeManipulator;
|
||||
public function __construct(\Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger $phpDocTypeChanger, \Rector\Core\NodeAnalyzer\ParamAnalyzer $paramAnalyzer, \Rector\CodeQuality\NodeManipulator\ClassMethodReturnTypeManipulator $classMethodReturnTypeManipulator, \Rector\CodeQuality\NodeManipulator\ClassMethodParameterTypeManipulator $classMethodParameterTypeManipulator)
|
||||
/**
|
||||
* @var \Rector\Core\NodeAnalyzer\CallAnalyzer
|
||||
*/
|
||||
private $callAnalyzer;
|
||||
public function __construct(\Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger $phpDocTypeChanger, \Rector\Core\NodeAnalyzer\ParamAnalyzer $paramAnalyzer, \Rector\CodeQuality\NodeManipulator\ClassMethodReturnTypeManipulator $classMethodReturnTypeManipulator, \Rector\CodeQuality\NodeManipulator\ClassMethodParameterTypeManipulator $classMethodParameterTypeManipulator, \Rector\Core\NodeAnalyzer\CallAnalyzer $callAnalyzer)
|
||||
{
|
||||
$this->phpDocTypeChanger = $phpDocTypeChanger;
|
||||
$this->paramAnalyzer = $paramAnalyzer;
|
||||
$this->classMethodReturnTypeManipulator = $classMethodReturnTypeManipulator;
|
||||
$this->classMethodParameterTypeManipulator = $classMethodParameterTypeManipulator;
|
||||
$this->callAnalyzer = $callAnalyzer;
|
||||
}
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
@ -174,6 +178,10 @@ CODE_SAMPLE
|
||||
if (!$return->expr instanceof \PhpParser\Node\Expr) {
|
||||
return \false;
|
||||
}
|
||||
return $return->expr instanceof \PhpParser\Node\Expr\New_ && $return->expr->class instanceof \PhpParser\Node\Name && $this->nodeNameResolver->isName($return->expr->class, self::DATE_TIME);
|
||||
if (!$this->callAnalyzer->isNewInstance($this->betterNodeFinder, $return->expr)) {
|
||||
return \false;
|
||||
}
|
||||
$type = $this->nodeTypeResolver->resolve($return->expr);
|
||||
return $type instanceof \PHPStan\Type\ObjectType && $type->getClassName() === self::DATE_TIME;
|
||||
}
|
||||
}
|
||||
|
@ -5,8 +5,6 @@ namespace Rector\Defluent\NodeAnalyzer;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Expr\Clone_;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\New_;
|
||||
use PhpParser\Node\Expr\StaticCall;
|
||||
@ -22,7 +20,6 @@ use PHPStan\Type\ThisType;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\Core\NodeAnalyzer\CallAnalyzer;
|
||||
use Rector\Core\PhpParser\AstResolver;
|
||||
use Rector\Core\PhpParser\Comparing\NodeComparator;
|
||||
use Rector\Core\PhpParser\Node\BetterNodeFinder;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
@ -61,10 +58,6 @@ final class FluentChainMethodCallNodeAnalyzer
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
/**
|
||||
* @var \Rector\Core\PhpParser\Comparing\NodeComparator
|
||||
*/
|
||||
private $nodeComparator;
|
||||
/**
|
||||
* @var \Rector\TypeDeclaration\TypeInferer\ReturnTypeInferer
|
||||
*/
|
||||
@ -73,14 +66,13 @@ final class FluentChainMethodCallNodeAnalyzer
|
||||
* @var \Rector\Core\NodeAnalyzer\CallAnalyzer
|
||||
*/
|
||||
private $callAnalyzer;
|
||||
public function __construct(\Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \Rector\NodeTypeResolver\NodeTypeResolver $nodeTypeResolver, \PhpParser\NodeFinder $nodeFinder, \Rector\Core\PhpParser\AstResolver $astResolver, \Rector\Core\PhpParser\Node\BetterNodeFinder $betterNodeFinder, \Rector\Core\PhpParser\Comparing\NodeComparator $nodeComparator, \Rector\TypeDeclaration\TypeInferer\ReturnTypeInferer $returnTypeInferer, \Rector\Core\NodeAnalyzer\CallAnalyzer $callAnalyzer)
|
||||
public function __construct(\Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \Rector\NodeTypeResolver\NodeTypeResolver $nodeTypeResolver, \PhpParser\NodeFinder $nodeFinder, \Rector\Core\PhpParser\AstResolver $astResolver, \Rector\Core\PhpParser\Node\BetterNodeFinder $betterNodeFinder, \Rector\TypeDeclaration\TypeInferer\ReturnTypeInferer $returnTypeInferer, \Rector\Core\NodeAnalyzer\CallAnalyzer $callAnalyzer)
|
||||
{
|
||||
$this->nodeNameResolver = $nodeNameResolver;
|
||||
$this->nodeTypeResolver = $nodeTypeResolver;
|
||||
$this->nodeFinder = $nodeFinder;
|
||||
$this->astResolver = $astResolver;
|
||||
$this->betterNodeFinder = $betterNodeFinder;
|
||||
$this->nodeComparator = $nodeComparator;
|
||||
$this->returnTypeInferer = $returnTypeInferer;
|
||||
$this->callAnalyzer = $callAnalyzer;
|
||||
}
|
||||
@ -253,26 +245,11 @@ final class FluentChainMethodCallNodeAnalyzer
|
||||
if (!$expr instanceof \PhpParser\Node\Expr) {
|
||||
continue;
|
||||
}
|
||||
if (!$this->isNewInstance($expr)) {
|
||||
if (!$this->callAnalyzer->isNewInstance($this->betterNodeFinder, $expr)) {
|
||||
continue;
|
||||
}
|
||||
return \true;
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
private function isNewInstance(\PhpParser\Node\Expr $expr) : bool
|
||||
{
|
||||
if ($expr instanceof \PhpParser\Node\Expr\Clone_ || $expr instanceof \PhpParser\Node\Expr\New_) {
|
||||
return \true;
|
||||
}
|
||||
return (bool) $this->betterNodeFinder->findFirstPreviousOfNode($expr, function (\PhpParser\Node $node) use($expr) : bool {
|
||||
if (!$node instanceof \PhpParser\Node\Expr\Assign) {
|
||||
return \false;
|
||||
}
|
||||
if (!$this->nodeComparator->areNodesEqual($node->var, $expr)) {
|
||||
return \false;
|
||||
}
|
||||
return $node->expr instanceof \PhpParser\Node\Expr\Clone_ || $node->expr instanceof \PhpParser\Node\Expr\New_;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,9 @@ declare (strict_types=1);
|
||||
namespace Rector\Privatization\TypeManipulator;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PHPStan\Type\Accessory\NonEmptyArrayType;
|
||||
use PHPStan\Type\ArrayType;
|
||||
use PHPStan\Type\IntersectionType;
|
||||
use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\Type;
|
||||
use PHPStan\Type\UnionType;
|
||||
@ -33,8 +35,25 @@ final class NormalizeTypeToRespectArrayScalarType
|
||||
if ($type instanceof \PHPStan\Type\MixedType) {
|
||||
return new \PHPStan\Type\ArrayType($type, $type);
|
||||
}
|
||||
if ($type instanceof \PHPStan\Type\ArrayType) {
|
||||
return $this->resolveArrayType($type);
|
||||
}
|
||||
return $type;
|
||||
}
|
||||
private function resolveArrayType(\PHPStan\Type\ArrayType $arrayType) : \PHPStan\Type\ArrayType
|
||||
{
|
||||
$itemType = $arrayType->getItemType();
|
||||
if (!$itemType instanceof \PHPStan\Type\IntersectionType) {
|
||||
return $arrayType;
|
||||
}
|
||||
$types = $itemType->getTypes();
|
||||
foreach ($types as $key => $itemTypeType) {
|
||||
if ($itemTypeType instanceof \PHPStan\Type\Accessory\NonEmptyArrayType) {
|
||||
unset($types[$key]);
|
||||
}
|
||||
}
|
||||
return new \PHPStan\Type\ArrayType($arrayType->getKeyType(), new \PHPStan\Type\IntersectionType($types));
|
||||
}
|
||||
private function normalizeUnionType(\PHPStan\Type\UnionType $unionType) : \PHPStan\Type\UnionType
|
||||
{
|
||||
$normalizedTypes = [];
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'ddd20e9e9bb7f1303d9ad35cf058677a58d72842';
|
||||
public const PACKAGE_VERSION = 'ea9cddd31bc7dc54320929633802db4916d75eee';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-08-21 13:15:20';
|
||||
public const RELEASE_DATE = '2021-08-21 19:35:17';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20210821\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
@ -3,19 +3,33 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Core\NodeAnalyzer;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Expr\BinaryOp;
|
||||
use PhpParser\Node\Expr\BooleanNot;
|
||||
use PhpParser\Node\Expr\Clone_;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\New_;
|
||||
use PhpParser\Node\Expr\NullsafeMethodCall;
|
||||
use PhpParser\Node\Expr\StaticCall;
|
||||
use PhpParser\Node\Stmt\If_;
|
||||
use Rector\Core\PhpParser\Comparing\NodeComparator;
|
||||
use Rector\Core\PhpParser\Node\BetterNodeFinder;
|
||||
final class CallAnalyzer
|
||||
{
|
||||
/**
|
||||
* @var array<class-string<Expr>>
|
||||
*/
|
||||
private const OBJECT_CALL_TYPES = [\PhpParser\Node\Expr\MethodCall::class, \PhpParser\Node\Expr\NullsafeMethodCall::class, \PhpParser\Node\Expr\StaticCall::class];
|
||||
/**
|
||||
* @var \Rector\Core\PhpParser\Comparing\NodeComparator
|
||||
*/
|
||||
private $nodeComparator;
|
||||
public function __construct(\Rector\Core\PhpParser\Comparing\NodeComparator $nodeComparator)
|
||||
{
|
||||
$this->nodeComparator = $nodeComparator;
|
||||
}
|
||||
public function isObjectCall(\PhpParser\Node\Expr $expr) : bool
|
||||
{
|
||||
if ($expr instanceof \PhpParser\Node\Expr\BooleanNot) {
|
||||
@ -45,4 +59,22 @@ final class CallAnalyzer
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
/**
|
||||
* Inject BetterNodeFinder due Circular reference
|
||||
*/
|
||||
public function isNewInstance(\Rector\Core\PhpParser\Node\BetterNodeFinder $betterNodeFinder, \PhpParser\Node\Expr $expr) : bool
|
||||
{
|
||||
if ($expr instanceof \PhpParser\Node\Expr\Clone_ || $expr instanceof \PhpParser\Node\Expr\New_) {
|
||||
return \true;
|
||||
}
|
||||
return (bool) $betterNodeFinder->findFirstPreviousOfNode($expr, function (\PhpParser\Node $node) use($expr) : bool {
|
||||
if (!$node instanceof \PhpParser\Node\Expr\Assign) {
|
||||
return \false;
|
||||
}
|
||||
if (!$this->nodeComparator->areNodesEqual($node->var, $expr)) {
|
||||
return \false;
|
||||
}
|
||||
return $node->expr instanceof \PhpParser\Node\Expr\Clone_ || $node->expr instanceof \PhpParser\Node\Expr\New_;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d::getLoader();
|
||||
return ComposerAutoloaderInitb56e86ccb022729e5b0b1241923b45aa::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d
|
||||
class ComposerAutoloaderInitb56e86ccb022729e5b0b1241923b45aa
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb56e86ccb022729e5b0b1241923b45aa', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb56e86ccb022729e5b0b1241923b45aa', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitfb5c6ba7a0b4add0a859651edd3b007d::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb56e86ccb022729e5b0b1241923b45aa::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitfb5c6ba7a0b4add0a859651edd3b007d::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitb56e86ccb022729e5b0b1241923b45aa::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirefb5c6ba7a0b4add0a859651edd3b007d($fileIdentifier, $file);
|
||||
composerRequireb56e86ccb022729e5b0b1241923b45aa($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequirefb5c6ba7a0b4add0a859651edd3b007d($fileIdentifier, $file)
|
||||
function composerRequireb56e86ccb022729e5b0b1241923b45aa($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitfb5c6ba7a0b4add0a859651edd3b007d
|
||||
class ComposerStaticInitb56e86ccb022729e5b0b1241923b45aa
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
@ -3853,9 +3853,9 @@ class ComposerStaticInitfb5c6ba7a0b4add0a859651edd3b007d
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitfb5c6ba7a0b4add0a859651edd3b007d::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitfb5c6ba7a0b4add0a859651edd3b007d::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitfb5c6ba7a0b4add0a859651edd3b007d::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb56e86ccb022729e5b0b1241923b45aa::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb56e86ccb022729e5b0b1241923b45aa::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb56e86ccb022729e5b0b1241923b45aa::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
14
vendor/composer/installed.json
vendored
14
vendor/composer/installed.json
vendored
@ -832,17 +832,17 @@
|
||||
},
|
||||
{
|
||||
"name": "phpstan\/phpstan",
|
||||
"version": "0.12.94",
|
||||
"version_normalized": "0.12.94.0",
|
||||
"version": "0.12.95",
|
||||
"version_normalized": "0.12.95.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/phpstan\/phpstan.git",
|
||||
"reference": "3d0ba4c198a24e3c3fc489f3ec6ac9612c4be5d6"
|
||||
"reference": "4ffddfe86e85dcc494a47e5f3dcfd1a2dccdce58"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/3d0ba4c198a24e3c3fc489f3ec6ac9612c4be5d6",
|
||||
"reference": "3d0ba4c198a24e3c3fc489f3ec6ac9612c4be5d6",
|
||||
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/4ffddfe86e85dcc494a47e5f3dcfd1a2dccdce58",
|
||||
"reference": "4ffddfe86e85dcc494a47e5f3dcfd1a2dccdce58",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -851,7 +851,7 @@
|
||||
"conflict": {
|
||||
"phpstan\/phpstan-shim": "*"
|
||||
},
|
||||
"time": "2021-07-30T09:05:27+00:00",
|
||||
"time": "2021-08-20T12:53:41+00:00",
|
||||
"bin": [
|
||||
"phpstan",
|
||||
"phpstan.phar"
|
||||
@ -875,7 +875,7 @@
|
||||
"description": "PHPStan - PHP Static Analysis Tool",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/phpstan\/phpstan\/issues",
|
||||
"source": "https:\/\/github.com\/phpstan\/phpstan\/tree\/0.12.94"
|
||||
"source": "https:\/\/github.com\/phpstan\/phpstan\/tree\/0.12.95"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
8
vendor/phpstan/phpstan/README.md
vendored
8
vendor/phpstan/phpstan/README.md
vendored
@ -49,6 +49,14 @@ can be checked before you run the actual line.
|
||||
<a href="https://kocourek.uk/"><img src="https://i.imgur.com/EX29z98.png" alt="Stepan Kocourek" width="294" height="64"></a>
|
||||
<br>
|
||||
<a href="https://www.shopware.com/en/"><img src="https://i.imgur.com/L4X5w9s.png" alt="Shopware" width="284" height="64"></a>
|
||||
|
||||
<a href="https://craftcms.com/"><img src="https://i.imgur.com/xJWThke.png" alt="Craft CMS" width="283" height="64"></a>
|
||||
|
||||
[**You can now sponsor my open-source work on PHPStan through GitHub Sponsors.**](https://github.com/sponsors/ondrejmirtes)
|
||||
|
||||
Does GitHub already have your 💳? Do you use PHPStan to find 🐛 before they reach production? [Send a couple of 💸 a month my way too.](https://github.com/sponsors/ondrejmirtes) Thank you!
|
||||
|
||||
One-time donations [through PayPal](https://paypal.me/phpstan) are also accepted. To request an invoice, [contact me](mailto:ondrej@mirtes.cz) through e-mail.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
BIN
vendor/phpstan/phpstan/phpstan.phar
vendored
BIN
vendor/phpstan/phpstan/phpstan.phar
vendored
Binary file not shown.
26
vendor/phpstan/phpstan/phpstan.phar.asc
vendored
26
vendor/phpstan/phpstan/phpstan.phar.asc
vendored
@ -1,16 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmEDwNYACgkQzxoQjQ56
|
||||
5yAbWQ//TaKHz0pj5wrcd49pH4qcFPEAgqI5kfptGgQOYQ6xMdsNUIGFeYfeDS41
|
||||
cQXB6jhePx3+zlwfrkZR0G9i6N3R1mhI1h3Olq6893rXElIjiRQGCDzFoO4N/Qbk
|
||||
5f8k6iyP7/SvSFNfGZ8b5WeXJ0tpI1bB3qQP0UGXsr3q5K1JZzgYeTr9ZOigMIr/
|
||||
sFmx+MVAvUtY7riI2MGZ0r5B2rAVABRpM8GyOE2Eg8TkdVSiE4vmGvvZA6zULFtA
|
||||
sbhKtHHJyVq+zLNPEtnBPuTl6+uQk7ll1pI1o7g5rTP2UunyXldhbbdS4iWueF0F
|
||||
KRnkAH7s1Q+/EvXJ9sYFryfqzODi10fjoXDpqnxOdTQcAcPWnW7v/BtbW57DVAMH
|
||||
mHLfiuw72Jfh1TCwTSHQ18vOSU7cahbQeG1z898OPbQH7DrxYtaJTSLGUI7tEJlM
|
||||
Glbb5rPZJOoj3jEI3/ShRInxDZR417fKWMmmpQL1JoXgr+b/VdRP4TjOSV7GjuOp
|
||||
iC99cEkirqGWrLzIfLTyAJXh8LE7OitV/BuRGqAnrtUiAguSv/HLpVZtEvmon5UO
|
||||
JDqJyLzewv7IRJhpMhAODJDg2VjzgvYSmLQRDR3qdBFxlovsCFcsRggdjn3Amb3a
|
||||
URlgzEjL1s0tzgAuSAnfliwo/sQB9l0Qo2vj23U9PKCvYnreix4=
|
||||
=GLW4
|
||||
iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmEfpdUACgkQzxoQjQ56
|
||||
5yD1yg//T+B7Yy23IE2RDXD8WzPfn7h0W5cFugl9D3KfvIVWW1sAMoNMx2S6P/bS
|
||||
Y1bx28t3dqwMnyMXtLrML666/40+/AFUzS90VgIRO2LjDSuvdxQqj+Z9jXpy/R9S
|
||||
aRGGd4WmiqcNvmjHvmBeXIlxmehNkOHOSH2xKmKEPcn5BCOt19VJL9GMq27aCIsJ
|
||||
x2P7HtYte5408blTiOL/XONezBK05wOE0oFat8TGWh8Uvl2YOKUP1m1vTUY+JqfD
|
||||
zIsehhOrnqcDgImcXexGsgtSknKVWLDVXzRGbBUjhQzCJ+IhYU9p9kPlj+brWk/m
|
||||
aJmBk8SQw7BfOmuSr1y8xeyWkpVYfXFDis3G4fSeOYglzx92MvddXDyDvStoTebJ
|
||||
L96gIOlQ8w2RR/0cSEeUFhIqQyVDR+KTZea8LIQyTKw0TW1HvAoJFKcx08Srw+S1
|
||||
pGcoPXgXWPXUFjaCenz7SFA4tn2Lel80PEiJ1yIX7csxHRZI/685XE6SOlgRNiNG
|
||||
xfJt3dE05IhmXgwWHBLIh9WTP8qd6T9tKEdJoH98KQ7xmqG/vM22S4cors30yHYH
|
||||
I1a5JT2u5tzkkRVKQXWWkl3prB/ka4VHKkR4iWxrCsBYBoTaA2wwdq8Ya5E3tsTY
|
||||
sUuB73IBLsfMju0CuIsGlAsGtcWm0H3723DagXgTZsIgAk3HKts=
|
||||
=BNHC
|
||||
-----END PGP SIGNATURE-----
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20210821\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d', false) && !interface_exists('ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d', false) && !trait_exists('ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d', false)) {
|
||||
spl_autoload_call('RectorPrefix20210821\ComposerAutoloaderInitfb5c6ba7a0b4add0a859651edd3b007d');
|
||||
if (!class_exists('ComposerAutoloaderInitb56e86ccb022729e5b0b1241923b45aa', false) && !interface_exists('ComposerAutoloaderInitb56e86ccb022729e5b0b1241923b45aa', false) && !trait_exists('ComposerAutoloaderInitb56e86ccb022729e5b0b1241923b45aa', false)) {
|
||||
spl_autoload_call('RectorPrefix20210821\ComposerAutoloaderInitb56e86ccb022729e5b0b1241923b45aa');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20210821\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -3308,9 +3308,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20210821\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequirefb5c6ba7a0b4add0a859651edd3b007d')) {
|
||||
function composerRequirefb5c6ba7a0b4add0a859651edd3b007d() {
|
||||
return \RectorPrefix20210821\composerRequirefb5c6ba7a0b4add0a859651edd3b007d(...func_get_args());
|
||||
if (!function_exists('composerRequireb56e86ccb022729e5b0b1241923b45aa')) {
|
||||
function composerRequireb56e86ccb022729e5b0b1241923b45aa() {
|
||||
return \RectorPrefix20210821\composerRequireb56e86ccb022729e5b0b1241923b45aa(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user