Closed (fixed)
Project:
Config Enforce
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2022 at 13:29 UTC
Updated:
9 Sep 2022 at 15:59 UTC
Jump to comment: Most recent
Declaring all PHP files as strict typed will prevent PHP from coercing types, thus potentially catching errors and implicit assumptions early.
This will require adding declare(strict_types=1); right after the opening <?php like so:
<?php
declare(strict_types=1);
...
Once that's done, it may surface some errors, which might require some (hopefully) minimal work to fix.
This should be done before #3305735: Type hint method/function parameters, return types, and class properties.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ambient.impactComment #3
ambient.impactComment #5
ambient.impactComment #6
ambient.impact