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

Detect declaration of assert() function in namespaces. #90

Open
NathanGibbs3 opened this issue Nov 23, 2023 · 0 comments
Open

Detect declaration of assert() function in namespaces. #90

NathanGibbs3 opened this issue Nov 23, 2023 · 0 comments

Comments

@NathanGibbs3
Copy link
Contributor

Detect user declared assert() function and issue the appropriate warnings.

From: https://www.php.net/manual/en/function.assert

PHP Version Description
8.0.0 Declaring a function called assert() inside a namespace is no longer allowed, and issues E_COMPILE_ERROR.
7.3.0 Declaring a function called assert() inside a namespace became deprecated. Such declaration now emits an E_DEPRECATED.
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

No branches or pull requests

1 participant