pestphp / pest

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
https://pestphp.com
MIT License
9.48k stars 343 forks source link

Fix strict_types check for enhanced compatibility #1108

Closed renatokira closed 4 months ago

renatokira commented 7 months ago

Enhances strict_types detection in method to accommodate commented declarations via preg_match. Ensures code alignment with PHP CS Fixer's 'single space' rule for improved formatting consistency.

configuration: ['space' => 'single'].

--- Original
+++ New
 <?php
-declare(ticks=1);
+declare(ticks = 1);

What:

Description:

Related: