What's Changed
- chore: add missing priority test for
BracesPositionFixer
andMultilinePromotedPropertiesFixer
by @kubawerlos in #8596 - chore: add more assertions in tests by @kubawerlos in #8740
- chore: bump dependencies version to maximum for non-newest MAJOR version by @keradus in #8753
- chore: cast types in tests by @kubawerlos in #8742
- chore: cleanup
AlignMultilineCommentFixerTest
by @kubawerlos in #8688 - chore: cleanup
BinaryOperatorSpacesFixerTest
by @kubawerlos in #8687 - chore: cleanup
BlankLineBeforeStatementFixerTest
by @kubawerlos in #8685 - chore: cleanup
ClassDefinitionFixer
by @kubawerlos in #8580 - chore: cleanup
ClassDefinitionFixerTest
by @kubawerlos in #8684 - chore: cleanup
ConcatSpaceFixerTest
by @kubawerlos in #8683 - chore: cleanup
DoctrineAnnotationArrayAssignmentFixerTest
by @kubawerlos in #8621 - chore: cleanup
DoctrineAnnotationBracesFixerTest
by @kubawerlos in #8623 - chore: cleanup
DoctrineAnnotationIndentationFixerTest
by @kubawerlos in #8620 - chore: cleanup
DoctrineAnnotationSpacesFixerTest
by @kubawerlos in #8624 - chore: cleanup
EchoTagSyntaxFixerTest
by @kubawerlos in #8681 - chore: cleanup
file_get_contents
return types by @kubawerlos in #8735 - chore: cleanup
FunctionDeclarationFixerTest
by @kubawerlos in #8680 - chore: cleanup
FunctionToConstantFixerTest
by @kubawerlos in #8618 - chore: cleanup
GeneralPhpdocTagRenameFixerTest
by @kubawerlos in #8627 - chore: cleanup
GlobalNamespaceImportFixerTest
by @kubawerlos in #8679 - chore: cleanup
HeaderCommentFixerTest
(restore@requires
for PHP 8.1) by @kubawerlos in #8678 - chore: cleanup
HeaderCommentFixerTest
by @kubawerlos in #8677 - chore: cleanup
IncrementStyleFixerTest
by @kubawerlos in #8676 - chore: cleanup
IndentationTypeFixerTest
by @kubawerlos in #8675 - chore: cleanup
ListSyntaxFixerTest
by @kubawerlos in #8674 - chore: cleanup
MethodArgumentSpaceFixerTest
by @kubawerlos in #8673 - chore: cleanup
MultilineWhitespaceBeforeSemicolonsFixerTest
by @kubawerlos in #8614 - chore: cleanup
NativeConstantInvocationFixerTest
by @kubawerlos in #8672 - chore: cleanup
NewWithParenthesesFixerTest
by @kubawerlos in #8592 - chore: cleanup
NoBlankLinesAfterPhpdocFixerTest
by @kubawerlos in #8671 - chore: cleanup
NoBreakCommentFixerTest
by @kubawerlos in #8670 - chore: cleanup
NoClosingTagFixerTest
by @kubawerlos in #8669 - chore: cleanup
NoEmptyStatementFixerTest
by @kubawerlos in #8667 - chore: cleanup
NoSpacesAroundOffsetFixerTest
by @kubawerlos in #8666 - chore: cleanup
NoUnneededControlParenthesesFixerTest
by @kubawerlos in #8665 - chore: cleanup
NoUselessElseFixerTest
by @kubawerlos in #8664 - chore: cleanup
PhpdocAddMissingParamAnnotationFixerTest
by @kubawerlos in #8663 - chore: cleanup
PhpdocNoEmptyReturnFixerTest
by @kubawerlos in #8662 - chore: cleanup
PhpdocNoPackageFixerTest
by @kubawerlos in #8626 - chore: cleanup
PhpdocOrderByValueFixerTest
by @kubawerlos in #8661 - chore: cleanup
PhpdocOrderFixerTest
by @kubawerlos in #8660 - chore: cleanup
PhpdocParamOrderFixerTest
by @kubawerlos in #8659 - chore: cleanup
PhpdocReturnSelfReferenceFixerTest
by @kubawerlos in #8658 - chore: cleanup
PhpdocSeparationFixerTest
by @kubawerlos in #8657 - chore: cleanup
PhpdocSummaryFixerTest
by @kubawerlos in #8654 - chore: cleanup
PhpdocTrimFixerTest
by @kubawerlos in #8653 - chore: cleanup
PhpdocTypesOrderFixerTest
by @kubawerlos in #8652 - chore: cleanup
PhpdocVarWithoutNameFixerTest
by @kubawerlos in #8617 - chore: cleanup
PhpUnitConstructFixerTest
by @kubawerlos in #8651 - chore: cleanup
PhpUnitDedicateAssertFixerTest
by @kubawerlos in #8650 - chore: cleanup
PhpUnitTestCaseStaticMethodCallsFixerTest
by @kubawerlos in #8649 - chore: cleanup
Preg
issues by @kubawerlos in #8720 - chore: cleanup
ReturnAssignmentFixerTest
by @kubawerlos in #8648 - chore: cleanup
ReturnTypeDeclarationFixerTest
by @kubawerlos in #8647 - chore: cleanup
SingleImportPerStatementFixerTest
by @kubawerlos in #8645 - chore: cleanup
SingleLineCommentStyleFixerTest
by @kubawerlos in #8644 - chore: cleanup
SingleSpaceAroundConstructFixerTest
by @kubawerlos in #8642 - chore: cleanup
SpaceAfterSemicolonFixerTest
by @kubawerlos in #8625 - chore: cleanup
SpacesInsideParenthesesFixerTest
by @kubawerlos in #8641 - chore: cleanup
StatementIndentationFixerTest
by @kubawerlos in #8640 - chore: cleanup
YodaStyleFixerTest
by @kubawerlos in #8638 - chore: cleanup booleans use in tests by @kubawerlos in #8738
- chore: cleanup code in tests by @kubawerlos in #8745
- chore: cleanup PsrAutoloadingFixerTest.php keywords handling, as always defined currently by @keradus in #8730
- chore: do not check if
JSON_INVALID_UTF8_IGNORE
is defined because it always is (since PHP 7.2) by @kubawerlos in #8709 - chore: handle saveXML failures explicitly by @keradus in #8755
- chore: ignore remaining PHPStan (false positive) issues by @kubawerlos in #8746
- chore: improve PHPDoc's types in
NoUnsetOnPropertyFixer
by @kubawerlos in #8741 - chore: improve PHPDocs in tests by @kubawerlos in #8736
- chore: improve PHPDocs in tests by @kubawerlos in #8744
- chore: improve type of
Token::equalsAny
by @kubawerlos in #8743 - chore: lint yaml files by @gnought in #8622
- chore: MultilinePromotedPropertiesFixer - mark new fixer introduced in #8595 as experimental by @keradus in #8758
- chore: PHPMD - cleanup
UnusedLocalVariable
forforeach
by @kubawerlos in #8637 - chore: refactor FCT by @keradus in #8714
- chore: remove
defined
calls from tests by @kubawerlos in #8708 - chore: remove unused local variables in src by @kubawerlos in #8600
- chore: remove unused local variables in tests by @kubawerlos in #8599
- chore: remove useless test from
AliasedFixerOptionTest
by @kubawerlos in #8739 - chore: restore original type of Token::equalsAny, partially reverts #8743 by @keradus in #8759
- chore: run mutation tests on PHP 8.4 by @kubawerlos in #8594
- chore: solve one of phpstan warnings by @keradus in #8754
- chore: update
checkbashisms
to 2.25.12 by @kubawerlos in #8694 - chore: update
checkbashisms
to 2.25.14 by @kubawerlos in #8731 - chore: update dev tools by @kubawerlos in #8737
- chore: update PHPUnit config by @kubawerlos in #8721
- chore: use
foreach
values by @kubawerlos in #8636 - chore: use
Preg
class everywhere by @kubawerlos in #8689 - chore: use PHPStan type in data providers by @kubawerlos in #8605
- chore(release): bump php ci alpine version by @gnought in #8581
- CI: add self-approved label by @keradus in #8757
- CI: run on PHP 8.5 by @kubawerlos in #8713
- deps: bump alpine from 3.21.3 to 3.22.0 by @dependabot in #8724
- deps: bump alpine from 3.21.3 to 3.22.0 by @keradus in #8726
- deps: bump ergebnis/composer-normalize from 2.45.0 to 2.46.0 in /dev-tools by @dependabot in #8578
- deps: bump ergebnis/composer-normalize from 2.46.0 to 2.47.0 in /dev-tools by @dependabot in #8584
- deps: bump phpstan/phpstan from 2.1.11 to 2.1.12 in /dev-tools in the phpstan group by @dependabot in #8583
- deps: bump phpstan/phpstan-symfony from 2.0.3 to 2.0.4 in /dev-tools in the phpstan group by @dependabot in #8557
- deps: bump the phpstan group across 1 directory with 2 updates by @dependabot in #8682
- deps: upgrade docker deps by @keradus in #8566
- docs:
VisibilityRequiredFixer
- update docs by @kubawerlos in #8563 - docs: extend and fix links to code by @osavchenko in #8639
- docs: Update SECURITY.md by @keradus in #8716
- docs: VisibilityRequiredFixer - extend docs by @keradus in #8561
- DX: add
symfony/polyfill-php84
by @kubawerlos in #8555 - DX: always use the latest stable
checkbashisms
package by @kubawerlos in #8732 - DX: check for
preg_
functions in tests by @kubawerlos in #8571 - DX: cleanup
BlankLinesBeforeNamespaceFixerTest
by @kubawerlos in #8573 - DX: cleanup
NativeFunctionInvocationFixerTest
by @kubawerlos in #8567 - DX: cleanup
NoUselessConcatOperatorFixerTest
by @kubawerlos in #8572 - DX: cleanup
SemicolonAfterInstructionFixerTest
by @kubawerlos in #8570 - DX: fix data providers by @kubawerlos in #8693
- DX: introduce
FCT
class for tokens not present in the lowest supported PHP version by @kubawerlos in #8706 - DX: move
symfony/polyfill-php84
to dev deps by @kubawerlos in #8559 - DX: support PHP 8.4 in local Docker development environment by @keradus in #8564
- DX: trim array/yield keys by @kubawerlos in #8460
- DX: use
WhitespacesAwareFixerInterface
only when needed by @kubawerlos in #8541 - feat:
BracesPositionFixer
- support property hooks in promoted properties by @kubawerlos in #8613 - feat:
ClassAttributesSeparationFixer
- add support for property hooks by @kubawerlos in #8610 - feat:
GlobalNamespaceImportFixer
- analyze and fix more annotations with types by @localheinz in #8593 - feat:
LowercaseKeywordsFixer
- support asymmetric visibility by @kubawerlos in #8607 - feat:
NoExtraBlankLinesFixer
- add comma to supported tokens by @kubawerlos in #8655 - feat:
NoSuperfluousPhpdocTagsFixer
- support asymmetric visibility by @kubawerlos in #8700 - feat:
NullableTypeDeclarationFixer
- support asymmetric visibility by @kubawerlos in #8697 - feat:
OrderedClassElementsFixer
- add support for property hooks for abstract properties by @kubawerlos in #8574 - feat:
OrderedTypesFixer
- add support for asymmetric visibility by @kubawerlos in #8552 - feat:
OrderedTypesFixer
- support asymmetric visibility in promoted property by @kubawerlos in #8602 - feat:
PhpdocAddMissingParamAnnotationFixer
- support asymmetric visibility by @kubawerlos in #8701 - feat:
PhpdocLineSpanFixer
- support asymmetric visibility by @kubawerlos in #8702 - feat:
PhpdocVarWithoutNameFixer
- support asymmetric visibility by @kubawerlos in #8704 - feat:
ProtectedToPrivateFixer
- add support for asymmetric visibility by @kubawerlos in #8569 - feat:
SingleClassElementPerStatementFixer
- support asymmetric visibility by @kubawerlos in #8696 - feat:
SingleSpaceAroundConstructFixer
- add support for asymmetric visibility by @kubawerlos in #8699 - feat:
StaticLambdaFixer
- support functions having classy elements with$this
by @kubawerlos in #8728 - feat:
VisibilityRequiredFixer
- support ordering set-visibility modifier by @kubawerlos in #8606 - feat: add
NewExpressionParenthesesFixer
by @vudaltsov in #8246 - feat: allowUnsupportedPhpVersion by @dkarlovi in #8733
- feat: introduce
MultilinePromotedPropertiesFixer
by @kubawerlos in #8595 - feat: Introduce
StaticPrivateMethodFixer
by @Slamdunk in #4557 - fix: "array" type must have no prefix to be fixable to "list" by @mvorisek in #8692
- fix: "min"/"max" in int generics must never be prefixed by backslash by @mvorisek in #8691
- fix:
ConstantCaseFixer
- do not touch namespaces starting withNull\
by @kubawerlos in #8752 - fix:
LowercaseStaticReferenceFixer
- do not change global constants by @kubawerlos in #8727 - fix:
MultilineWhitespaceBeforeSemicolonsFixer
- do not touch multiline constants definitions by @kubawerlos in #8615 - fix:
NewWithParenthesesFixer
- fix new without parentheses on PHP 8.4 syntax by @julien-boudry in #8588 - fix:
NoMultipleStatementsPerLineFixer
- handleset
andget
in different casing in property hooks by @kubawerlos in #8558 - fix:
NoUnusedImportsFixer
- handle imported class name with underscore before or after it in PHPDoc by @kubawerlos in #8598 - fix:
PhpUnitDedicateAssertFixer
- fix forassertFalse
withinstanceof
by @kubawerlos in #8597 - fix:
PhpUnitNamespacedFixer
must run beforeNoUnneededImportAliasFixer
by @kubawerlos in #8579 - fix:
PhpUnitTestClassRequiresCoversFixer
- do not add@coversNothing
annotation whenCoversTrait
attribute is used by @MoT3rror in #8734 - fix:
VisibilityRequiredFixer
- add support for asymmetric visibility by @julien-boudry in #8586 - fix: Allow non-doc comment on opening inline brace line by @mvorisek in #8690
- fix(dependabot): convert time values to string types by @gnought in #8634
- refactor: avoid unused local variables in tests by @kubawerlos in #8609
- test: add more cases to
PhpUnitMethodCasingFixerTest
by @kubawerlos in #8551 - test: fix "unused local variables
$token
" by @kubawerlos in #8603 - test: More verbose error output for integration test by @keradus in #8565
New Contributors
- @gnought made their first contribution in #8581
- @julien-boudry made their first contribution in #8588
- @osavchenko made their first contribution in #8639
- @MoT3rror made their first contribution in #8734
- @dkarlovi made their first contribution in #8733
Full Changelog: v3.75.0...v3.76.0