Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
PHP
/
PHP 8.0 features
What makes #[RequiresRole('admin')] enforce authorization in PHP?
from PHP 8.0 features
PHP 8.3.33
beginner
1 min
What makes #[RequiresRole('admin')] enforce authorization in PHP?
Application code that reflects, instantiates, and applies the metadata
The PHP engine immediately calling the attribute constructor on every request
The Attribute::TARGET_METHOD flag by itself
The presence of any ReflectionMethod object
Check
Ask AI about this kata
Report an error
next kata
A public method changes its parameter from $includeTax to $withTax without changing posit…
Quiz
A new version is available
Reload