Skip to content

Conversation

@Giorgiolino
Copy link

@Giorgiolino Giorgiolino commented May 21, 2020

The getclass($data) call should be rewritten to get_class($data)
(cf. https://www.php.net/get-class).
The get_type($data) call should be rewritten to gettype($data)
(cf. https://www.php.net/gettype)

Otherwise, it would result in the following Fatal Error (for getclass)
PHP Fatal error: Uncaught Error: Call to undefined function getclass()

The `getclass($data)` call should be rewritten to `get_class($data)`
(cf. https://www.php.net/get-class)
The `get_type($data)` call should be rewritten to `gettype($data)`
(cf. https://www.php.net/gettype)
@Giorgiolino Giorgiolino changed the title Fix bad method name getclass() in README Fix bad method names in README (getclass and get_type) May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant