Skip to content

Commit

Permalink
Bump min version to PHP 7.3 (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Mar 8, 2021
1 parent a788a8f commit 47a98f2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_checks.yaml
Expand Up @@ -21,7 +21,7 @@ jobs:

-
name: 'Rector CI'
run: composer rector
run: vendor/bin/rector process --dry-run --ansi

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
Expand Down
37 changes: 18 additions & 19 deletions composer.json
Expand Up @@ -11,32 +11,32 @@
{ "name": "Knplabs", "homepage": "http://knplabs.com" }
],
"require": {
"php": "^7.2|^8.0",
"doctrine/common": "^2.7|^3.0",
"doctrine/persistence": "^1.3.4|^2.0",
"php": ">=7.3",
"doctrine/common": "^3.0",
"doctrine/persistence": "^2.0",
"doctrine/dbal": "^2.9",
"doctrine/orm": "^2.7",
"symfony/cache": "^4.4|^5.1",
"symfony/dependency-injection": "^4.4|^5.1",
"symfony/http-kernel": "^4.4|^5.1",
"symfony/security-core": "^4.4|^5.1",
"symfony/framework-bundle": "^4.4|^5.1",
"symfony/string": "^5.0",
"symfony/translation-contracts": "^2.1",
"nette/utils": "^3.0",
"ramsey/uuid": "^3.9|^4.0",
"symfony/polyfill-php80": "^1.18"
"doctrine/orm": "^2.8",
"symfony/cache": "^4.4|^5.2",
"symfony/dependency-injection": "^4.4|^5.2",
"symfony/http-kernel": "^4.4|^5.2",
"symfony/security-core": "^4.4|^5.2",
"symfony/framework-bundle": "^4.4|^5.2",
"symfony/string": "^5.2",
"symfony/translation-contracts": "^2.3",
"nette/utils": "^3.2",
"ramsey/uuid": "^4.0",
"symfony/polyfill-php80": "^1.22"
},
"require-dev": {
"ext-pdo_sqlite": "*",
"ext-pdo_mysql": "*",
"ext-pdo_pgsql": "*",
"psr/log": "^1.1",
"doctrine/annotations": "^1.8",
"doctrine/doctrine-bundle": "^2.0",
"doctrine/annotations": "^1.12",
"doctrine/doctrine-bundle": "^2.2",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpstan": "^0.12.80",
"phpunit/phpunit": "^8.5|^9.2",
"phpunit/phpunit": "^9.5",
"rector/rector-prefixed": "^0.9",
"symplify/easy-coding-standard": "^9.2.6",
"symplify/phpstan-extensions": "^9.2.6",
Expand All @@ -59,7 +59,6 @@
"scripts": {
"check-cs": "vendor/bin/ecs check --ansi",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
"rector": "vendor/bin/rector process --dry-run"
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify"
}
}
4 changes: 4 additions & 0 deletions rector.php
Expand Up @@ -18,6 +18,10 @@
SetList::CODING_STYLE,
SetList::NETTE_UTILS_CODE_QUALITY,
SetList::NAMING,
SetList::PHP_70,
SetList::PHP_71,
SetList::PHP_72,
SetList::PHP_73,
]);

$parameters->set(Option::SKIP, [
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Tree/TreeNodeMethodsTrait.php
Expand Up @@ -103,7 +103,7 @@ public function addChildNode(TreeNodeInterface $treeNode): void
public function isIndirectChildNodeOf(TreeNodeInterface $treeNode): bool
{
return $this->getRealMaterializedPath() !== $treeNode->getRealMaterializedPath()
&& strpos($this->getRealMaterializedPath(), $treeNode->getRealMaterializedPath()) === 0;
&& strpos($this->getRealMaterializedPath(), (string) $treeNode->getRealMaterializedPath()) === 0;
}

public function isChildNodeOf(TreeNodeInterface $treeNode): bool
Expand Down

0 comments on commit 47a98f2

Please sign in to comment.