diff options
Diffstat (limited to 'lib/Minz')
| -rw-r--r-- | lib/Minz/Configuration.php | 2 | ||||
| -rw-r--r-- | lib/Minz/Dispatcher.php | 6 | ||||
| -rw-r--r-- | lib/Minz/Pdo.php | 6 | ||||
| -rw-r--r-- | lib/Minz/View.php | 3 |
4 files changed, 8 insertions, 9 deletions
diff --git a/lib/Minz/Configuration.php b/lib/Minz/Configuration.php index 5c3a8ade0..56733e481 100644 --- a/lib/Minz/Configuration.php +++ b/lib/Minz/Configuration.php @@ -72,7 +72,7 @@ class Minz_Configuration { /** * The namespace of the current configuration. * Unused. - * @phpstan-ignore-next-line + * @phpstan-ignore property.onlyWritten */ private string $namespace = ''; diff --git a/lib/Minz/Dispatcher.php b/lib/Minz/Dispatcher.php index c8825df61..85f342dad 100644 --- a/lib/Minz/Dispatcher.php +++ b/lib/Minz/Dispatcher.php @@ -44,7 +44,7 @@ final class Minz_Dispatcher { $this->createController (Minz_Request::controllerName ()); $this->controller->init (); $this->controller->firstAction (); - // @phpstan-ignore-next-line + // @phpstan-ignore booleanNot.alwaysTrue if (!self::$needsReset) { $this->launchAction ( Minz_Request::actionName () @@ -53,7 +53,7 @@ final class Minz_Dispatcher { } $this->controller->lastAction (); - // @phpstan-ignore-next-line + // @phpstan-ignore booleanNot.alwaysTrue if (!self::$needsReset) { $this->controller->declareCspHeader(); $this->controller->view ()->build (); @@ -61,7 +61,7 @@ final class Minz_Dispatcher { } catch (Minz_Exception $e) { throw $e; } - // @phpstan-ignore-next-line + // @phpstan-ignore doWhile.alwaysFalse } while (self::$needsReset); } diff --git a/lib/Minz/Pdo.php b/lib/Minz/Pdo.php index bb07de488..33d84eb45 100644 --- a/lib/Minz/Pdo.php +++ b/lib/Minz/Pdo.php @@ -58,7 +58,7 @@ abstract class Minz_Pdo extends PDO { * @param array<int,string> $options * @return PDOStatement|false * @throws PDOException if the attribute `PDO::ATTR_ERRMODE` is set to `PDO::ERRMODE_EXCEPTION` - * @phpstan-ignore-next-line + * @phpstan-ignore method.childParameterType, throws.unusedType */ #[\Override] #[\ReturnTypeWillChange] @@ -72,7 +72,7 @@ abstract class Minz_Pdo extends PDO { * @param string $statement * @return int|false * @throws PDOException if the attribute `PDO::ATTR_ERRMODE` is set to `PDO::ERRMODE_EXCEPTION` - * @phpstan-ignore-next-line + * @phpstan-ignore throws.unusedType */ #[\Override] #[\ReturnTypeWillChange] @@ -84,7 +84,7 @@ abstract class Minz_Pdo extends PDO { /** * @return PDOStatement|false * @throws PDOException if the attribute `PDO::ATTR_ERRMODE` is set to `PDO::ERRMODE_EXCEPTION` - * @phpstan-ignore-next-line + * @phpstan-ignore throws.unusedType */ #[\Override] #[\ReturnTypeWillChange] diff --git a/lib/Minz/View.php b/lib/Minz/View.php index 5b1518a84..717e47b15 100644 --- a/lib/Minz/View.php +++ b/lib/Minz/View.php @@ -346,8 +346,7 @@ class Minz_View { public function attributeParams(): void { foreach (Minz_View::$params as $key => $value) { - // TODO: Do not use variable variable (noVariableVariables) - /** @phpstan-ignore-next-line */ + // @phpstan-ignore property.dynamicName $this->$key = $value; } } |
