Skip to content

Apply PHPCS coding standards#67

Merged
alganet merged 1 commit into
masterfrom
phpcs
Mar 16, 2026
Merged

Apply PHPCS coding standards#67
alganet merged 1 commit into
masterfrom
phpcs

Conversation

@alganet

@alganet alganet commented Mar 16, 2026

Copy link
Copy Markdown
Member

Add declare(strict_types=1) to all files except Instantiator.php (which needs coercive typing for dynamic method invocation with INI data). Add typed properties, parameter types, and return types throughout. Replace array() with [], use modern PHP 8.5 syntax (constructor promotion, arrow functions, str_contains, ::class). Modernize tests to PHPUnit 12 style with attributes. Add phpcs.xml.dist with Respect coding standard. Remove dead test file InstantiatorImplementsInvoke.php (duplicate of LazyLoadTest).

Add declare(strict_types=1) to all files except Instantiator.php
(which needs coercive typing for dynamic method invocation with INI
data). Add typed properties, parameter types, and return types
throughout. Replace array() with [], use modern PHP 8.5 syntax
(constructor promotion, arrow functions, str_contains, ::class).
Modernize tests to PHPUnit 12 style with attributes. Add phpcs.xml.dist
with Respect coding standard. Remove dead test file
InstantiatorImplementsInvoke.php (duplicate of LazyLoadTest).
@alganet alganet changed the title Wpply PHPCS coding standards Apply PHPCS coding standards Mar 16, 2026
@alganet alganet marked this pull request as ready for review March 16, 2026 04:10
@alganet alganet merged commit 029f15f into master Mar 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant