Returns `true` if `s` is one of the PHP class-keyword references: `self`, `static`, `$this`, or `parent`. Use this when you need a single guard that covers *all* class keywords, including `parent`. For the subset that resolves to the current* class only, use [`is_self_or_static`].
(s: &str)
| 1859 | /// keywords, including `parent`. For the subset that resolves to the |
| 1860 | /// *current* class only, use [`is_self_or_static`]. |
| 1861 | pub(crate) fn is_class_keyword(s: &str) -> bool { |
| 1862 | is_self_or_static(s) || s.eq_ignore_ascii_case("parent") |
| 1863 | } |
| 1864 | |
| 1865 | /// Resolve `self`, `static`, `$this`, or `parent` to a class name. |
| 1866 | /// |
no test coverage detected