rfc:fallback-to-root-scope-deprecation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:fallback-to-root-scope-deprecation [2018/02/03 08:00] wesnetmorfc:fallback-to-root-scope-deprecation [2018/02/03 08:33] wesnetmo
Line 9: Line 9:
 ===== Introduction ===== ===== Introduction =====
  
-Fallback to global scope allow namespaces to access in an unqualified manner symbols actually residing in the root namespace.+Fallback to global scope allows namespaces to access in an unqualified manner symbols actually residing in the root namespace.
  
 <code php> <code php>
Line 72: Line 72:
 </code> </code>
  
-If this RFC passes, authors are then encouraged to avoid the Notice by writing `\strlen()` or `use function {strlen, strpos};` in their code.+However, if this RFC passes, authors should try to avoid the Notice by writing `\strlen()` or `use function {strlen, strpos};` in their code, which are **plenty of solutions covering any code style**. 
 + 
 +===== Migration Tools ===== 
 + 
 +  * [[https://github.com/squizlabs/PHP_CodeSniffer|PHP-CS]] 
 +  * [[https://github.com/FriendsOfPHP/PHP-CS-Fixer|PHP-CS-FIXER]] 
 +  * [[https://www.jetbrains.com/phpstorm/|PHPStorm]] 
 +  * More coming soon...
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 88: Line 95:
 ===== References ===== ===== References =====
  
-@TODO link discussion+- [[https://externals.io/message/101745|Discussion on externals]]
rfc/fallback-to-root-scope-deprecation.txt · Last modified: 2018/02/03 16:26 by wesnetmo