mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
improve ci
This commit is contained in:
parent
1498108d95
commit
dfd75bea94
2
.github/workflows/test_with_doctrine.yaml
vendored
2
.github/workflows/test_with_doctrine.yaml
vendored
@ -32,4 +32,4 @@ jobs:
|
||||
# do not intall doctrine/orm phpstan, it conflicts with Retor's one
|
||||
composer install -d orm --no-dev
|
||||
|
||||
- run: bin/rector process orm/lib --set dead-code --autoload-file orm/vendor/autoload.php
|
||||
- run: bin/rector process orm/lib --config ci/config/rector-doctrine.yaml --autoload-file orm/vendor/autoload.php --debug
|
||||
|
4
ci/config/rector-doctrine.yaml
Normal file
4
ci/config/rector-doctrine.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
parameters:
|
||||
auto_import_names: false
|
||||
sets:
|
||||
- "dead-code"
|
@ -92,8 +92,11 @@ PHP
|
||||
return null;
|
||||
}
|
||||
|
||||
/** @var PhpDocInfo $phpDocInfo */
|
||||
/** @var PhpDocInfo|null $phpDocInfo */
|
||||
$phpDocInfo = $node->getAttribute(AttributeKey::PHP_DOC_INFO);
|
||||
if ($phpDocInfo === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$varTagValue = $phpDocInfo->getVarTagValue();
|
||||
if ($varTagValue === null) {
|
||||
|
@ -125,9 +125,9 @@ final class PropertyManipulator
|
||||
return true;
|
||||
}
|
||||
|
||||
/** @var PhpDocInfo $phpDocInfo */
|
||||
/** @var PhpDocInfo|null $phpDocInfo */
|
||||
$phpDocInfo = $property->getAttribute(AttributeKey::PHP_DOC_INFO);
|
||||
if ($phpDocInfo->hasByType(SerializerTypeTagValueNode::class)) {
|
||||
if ($phpDocInfo !== null && $phpDocInfo->hasByType(SerializerTypeTagValueNode::class)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user