Skip to content

Commit cf394e6

Browse files
committed
update psalm to v5
1 parent 837f907 commit cf394e6

File tree

7 files changed

+2
-6
lines changed

7 files changed

+2
-6
lines changed

CallbackStream.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function getContents(): string
4040
{
4141
$callback = $this->detach();
4242
$result = '';
43-
/** @psalm-suppress TypeDoesNotContainType */
4443
if ($callback !== null) {
4544
$result = $callback();
4645
}

Client/Adapter/Stream.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ protected function _open(string $url, RequestInterface $request): void
314314
return true;
315315
});
316316
try {
317-
/** @psalm-suppress PossiblyNullArgument */
318317
$this->_stream = fopen($url, 'rb', false, $this->_context);
319318
} finally {
320319
restore_error_handler();

Cookie/CookieCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
*
3636
* Provides an immutable collection of cookies objects. Adding or removing
3737
* to a collection returns a *new* collection that you must retain.
38+
*
39+
* @template-implements \IteratorAggregate<string, \Cake\Http\Cookie\CookieInterface>
3840
*/
3941
class CookieCollection implements IteratorAggregate, Countable
4042
{

ResponseEmitter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ protected function setCookie($cookie): bool
232232
}
233233

234234
if (PHP_VERSION_ID >= 70300) {
235-
/** @psalm-suppress InvalidArgument */
236235
return setcookie($cookie->getName(), $cookie->getScalarValue(), $cookie->getOptions());
237236
}
238237

ServerRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,6 @@ public function withUri(UriInterface $uri, $preserveHost = false)
17991799
* request-target forms allowed in request messages)
18001800
* @param string $requestTarget The request target.
18011801
* @return static
1802-
* @psalm-suppress MoreSpecificImplementedParamType
18031802
*/
18041803
public function withRequestTarget($requestTarget)
18051804
{

ServerRequestFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public static function fromGlobals(
7171
$uri->getUri();
7272
}
7373

74-
/** @psalm-suppress NoInterfaceProperties */
7574
$sessionConfig = (array)Configure::read('Session') + [
7675
'defaults' => 'php',
7776
'cookiePath' => $webroot,

Session.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,6 @@ public function write($name, $value = null): void
527527
$data = Hash::insert($data, $key, $val);
528528
}
529529

530-
/** @psalm-suppress PossiblyNullArgument */
531530
$this->_overwrite($_SESSION, $data);
532531
}
533532

0 commit comments

Comments
 (0)