Documentation

TypedConstantsTest.php

Tests that typed OO constants will be tokenized correctly for: - the type keywords, including keywords like array (T_STRING).

  • the ? in nullable types
  • namespaced name types (PHPCS 3.x vs 4.x).
  • the | in union types
  • the & in intersection types
Tags
author

Juliette Reinders Folmer phpcs_nospam@adviesenzo.nl

copyright

2024 PHPCSStandards and contributors

license

https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence

Table of Contents

Classes

TypedConstantsTest

        
On this page

Search results