diff --git a/composer.json b/composer.json index 74a93d00..6573375c 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "contributte/application": "^0.5.0", "nette/di": "^3.0.0", "nette/forms": "^3.1.3", - "nette/utils": "^3.0.1", + "nette/utils": "^3.0.1 || ^4.0.0", "symfony/property-access": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" }, "require-dev": { diff --git a/phpstan.neon b/phpstan.neon index 2c2f287a..59f4c075 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -48,3 +48,19 @@ parameters: message: "#^Parameter \\#1 \\$x of method Doctrine\\\\ORM\\\\Query\\\\Expr\\:\\:like\\(\\) expects string, Doctrine\\\\ORM\\\\Query\\\\Expr\\\\Func given\\.$#" count: 1 path: src/DataSource/DoctrineDataSource.php + - # In PHP 8+, the Stringable typehint should be used, and this can be removed. + message: '#string\\|Stringable#' + count: 1 + path: src/Column/Action.php + - # In PHP 8+, the Stringable typehint should be used, and this can be removed. + message: '#string\\|Stringable#' + count: 1 + path: src/DataGrid.php + - # In PHP 8+, the Stringable typehint should be used, and this can be removed. + message: '#string\\|Stringable#' + count: 3 + path: src/Export/Export.php + - # In PHP 8+, the Stringable typehint should be used, and this can be removed. + message: '#string\\|Stringable#' + count: 2 + path: src/Status/Option.php diff --git a/src/Column/ColumnStatus.php b/src/Column/ColumnStatus.php index d013e33f..504b9694 100644 --- a/src/Column/ColumnStatus.php +++ b/src/Column/ColumnStatus.php @@ -123,6 +123,7 @@ public function addOption($value, string $text): Option /** * Set all options at once * + * @param string[] $options * @return static */ public function setOptions(array $options): self