Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unserialise method param mismatch not found #1633

Closed
muglug opened this issue May 14, 2019 · 1 comment
Closed

Unserialise method param mismatch not found #1633

muglug opened this issue May 14, 2019 · 1 comment
Labels

Comments

@muglug
Copy link
Collaborator

muglug commented May 14, 2019

Should be an error:

class Foo implements \Serializable
{
    public function unserialize(string $serialized)
    {
    }
    public function serialize()
    {
    }
}
@muglug muglug added the bug label May 14, 2019
@koriym
Copy link

koriym commented May 14, 2019

Documented as follows in the php.net manual.
https://www.php.net/manual/en/class.serializable.php

Serializable {
/* Methods */
abstract public serialize ( void ) : string
abstract public unserialize ( string $serialized ) : void
}

But it causes an error.
https://3v4l.org/SS4HE

@muglug muglug closed this as completed in 30cbcb6 May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants