no_alias_language_construct_call.rst 923 B

1234567891011121314151617181920212223242526272829303132333435
  1. =========================================
  2. Rule ``no_alias_language_construct_call``
  3. =========================================
  4. Master language constructs shall be used instead of aliases.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php
  13. -die;
  14. +exit;
  15. Rule sets
  16. ---------
  17. The rule is part of the following rule sets:
  18. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
  19. - `@Symfony <./../../ruleSets/Symfony.rst>`_
  20. References
  21. ----------
  22. - Fixer class: `PhpCsFixer\\Fixer\\Alias\\NoAliasLanguageConstructCallFixer <./../../../src/Fixer/Alias/NoAliasLanguageConstructCallFixer.php>`_
  23. - Test class: `PhpCsFixer\\Tests\\Fixer\\Alias\\NoAliasLanguageConstructCallFixerTest <./../../../tests/Fixer/Alias/NoAliasLanguageConstructCallFixerTest.php>`_
  24. The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.