Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"php-di/php-di": "^7.0",
"phpat/phpat": "^0.11.0",
"phpbench/phpbench": "^1.4",
"phpstan/phpstan": "2.1.40",
"phpstan/phpstan": "2.2.6",
"phpunit/phpunit": "^12.5.22",
"predis/predis": "^3.0.0",
"riskio/oauth2-auth0": "^2.4",
Expand Down
2 changes: 0 additions & 2 deletions packages/console/src/Components/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ final class Option
return $this->value;
}

/** @phpstan-ignore-next-line */
if (method_exists($this->value, 'toString')) {
/** @phpstan-ignore-next-line */
return $this->value->toString();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/container/src/GenericContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function invoke(ClassReflector|MethodReflector|FunctionReflector|callable
return $this->invokeClosure($method, ...$params);
}

if (is_array($method) && count($method) === 2) {
if (is_array($method)) {
return $this->invokeClosure($method(...), ...$params);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/cryptography/tests/Signing/SignerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function test_no_signing_key(): void
minimumExecutionDuration: false,
));

$signer->sign('important data');
$signer->sign('important data'); // @phpstan-ignore method.resultUnused (call is expected to throw before returning)
}

public function test_empty_data(): void
Expand Down
2 changes: 1 addition & 1 deletion packages/discovery/src/BootDiscovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private function resolveDiscovery(string $discoveryClass): Discovery
if ($discovery === null) {
try {
$discovery = new $discoveryClass();
} catch (ArgumentCountError) { // @phpstan-ignore catch.neverThrown
} catch (ArgumentCountError) {
throw DiscoveryClassCouldNotBeResolved::forDiscoveryClass($discoveryClass);
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/http/src/Cookie/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ public static function createFromString(string $string): self

return new Cookie(
key: $cookie['name'],
value: $cookie['value'] ?? null,
value: $cookie['value'],
expiresAt: isset($cookie['expires']) ? (int) $cookie['expires'] : null,
maxAge: isset($cookie['max-age']) ? (int) $cookie['max-age'] : null,
domain: $cookie['domain'] ?? null,
path: $cookie['path'] ?? '/',
secure: isset($cookie['secure']) && $cookie['secure'] === true,
httpOnly: isset($cookie['httponly']) && $cookie['httponly'] === true,
secure: isset($cookie['secure']),
httpOnly: isset($cookie['httponly']),
sameSite: isset($cookie['samesite']) ? SameSite::from($cookie['samesite']) : null,
);
}
Expand Down
1 change: 1 addition & 0 deletions packages/view/src/Parser/TempestViewLexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ private function lexTag(): array
);

if ($hasValue) {
// @phpstan-ignore identical.alwaysFalse (seek() is stateful; consume() above advanced past '=', so it now returns the quote char)
$quote = $this->seek() === "'"
? "'"
: '"';
Expand Down