Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

declare_strict_types does not work with shebang #7681

Closed
mvorisek opened this issue Jan 5, 2024 · 1 comment
Closed

declare_strict_types does not work with shebang #7681

mvorisek opened this issue Jan 5, 2024 · 1 comment

Comments

@mvorisek
Copy link
Contributor

mvorisek commented Jan 5, 2024

Bug report

See unfixed https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.46.0/dev-tools/info-extractor.php file.

I belive it should add declare_strict_types to the first <?php instead of relying <?php will be found on the 1st line. Or handle at least shebang line explicitly.

@Wirone
Copy link
Member

Wirone commented Jan 5, 2024

Duplicate of #7634.

@Wirone Wirone closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants