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

Fix bad method names in README (getclass and get_type) #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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