-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PHPStan] Update to PHPStan ^1.7.0 (#2354)
* [PHPStan] Update to PHPStan ^1.7.0 * [ci-review] Rector Rectify * [ci-review] Rector Rectify * already 1.7.1 * skip pull from PHPStan PhpPropertyReflection * rename fixture * debug * Fixed 🎉 * keep mysqli object use case Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
a14bd26
commit dc91892
Showing
10 changed files
with
30 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
...gradeReflectionPropertyGetDefaultValueRector/Fixture/pull_from_phpstan_reflection.php.inc
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
...ReflectionPropertyGetDefaultValueRector/Fixture/skip_pull_from_phpstan_reflection.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DowngradePhp80\Rector\MethodCall\DowngradeReflectionPropertyGetDefaultValueRector\Fixture; | ||
|
||
use PHPStan\Reflection\Php\PhpPropertyReflection; | ||
|
||
class SkipPullFromPHPStanReflection | ||
{ | ||
public function get(PhpPropertyReflection $phpPropertyReflection) | ||
{ | ||
$reflectionProperty = $phpPropertyReflection->getNativeReflection(); | ||
return is_array($reflectionProperty->getDefaultValue()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters