Skip to content
Merged
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
8 changes: 4 additions & 4 deletions tests/__serialize_020.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MessageEvents
$this->transports[$event->getTransport()] = true;
}

public function getEvents(string $name = null): array
public function getEvents(?string $name = null): array
{
return $this->events;
}
Expand Down Expand Up @@ -229,7 +229,7 @@ final class Headers
return array_shift($values);
}

public function all(string $name = null): iterable
public function all(?string $name = null): iterable
{
if (null === $name) {
foreach ($this->headers as $name => $collection) {
Expand Down Expand Up @@ -305,7 +305,7 @@ class RawMessage
class Message extends RawMessage
{

public function __construct(Headers $headers = null, AbstractPart $body = null)
public function __construct(?Headers $headers = null, ?AbstractPart $body = null)
{
$this->headers = $headers ? clone $headers : new Headers();
$this->body = $body;
Expand Down Expand Up @@ -640,4 +640,4 @@ object(MessageEvents)#1 (2) {
string(14) "headers_before"
bool(false)
string(13) "headers_after"
bool(false)
bool(false)
2 changes: 1 addition & 1 deletion tests/igbinary_015.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function gc($time) {

ini_set('session.serialize_handler', 'igbinary');

session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');
@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');

session_start();

Expand Down
2 changes: 1 addition & 1 deletion tests/igbinary_015b.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function gc($time) {
return true;
}

session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');
@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');

session_start();

Expand Down
2 changes: 1 addition & 1 deletion tests/igbinary_015c.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function gc($time) {

ini_set('session.serialize_handler', 'igbinary');

session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');
@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');
session_id('abcdef10231512dfaz_12311');

session_start();
Expand Down
2 changes: 1 addition & 1 deletion tests/igbinary_027.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Bar {

ini_set('session.serialize_handler', 'igbinary');

session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');
@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');


$db_object = new Foo();
Expand Down
2 changes: 1 addition & 1 deletion tests/igbinary_028.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function gc($time) {

ini_set('session.serialize_handler', 'igbinary');

session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');
@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');

session_start();

Expand Down
2 changes: 1 addition & 1 deletion tests/igbinary_047.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Bar {
ini_set('session.serialize_handler', 'igbinary');

$handler = new S();
session_set_save_handler($handler, true);
@session_set_save_handler($handler, true);

$db_object = new Foo();
$session_object = new Bar();
Expand Down