#5594 - Consider declare(strict_types=1) in codebase (rolling)

  • By
  • Added
  • 8 views
Identifier #5594
Issue type Feature request or suggestion
Title Consider declare(strict_types=1) in codebase (rolling)
Status Completed
Tags

Roadmap: Over the horizon (custom)

Roadmap: v11 partial implementation (custom)

Type: Standards compliance (custom)

Handling member PDStig
Addon core
Description Since it is not possible at this time to maintain the special ocp PHP (much less compile it on certain machines), we should consider adding declare(strict_types=1) at the top of every PHP file in the v11 codebase.

Be cautious about its implementation; it must also be explicitly included in eval code (unless we're pulling code from a file that already has it declared).
Steps to reproduce

Related to

#5473 - v12: Consider *_compiled directories

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated