Open
Conversation
1cf4e96 to
481e347
Compare
481e347 to
12530f7
Compare
d43f584 to
e0c0967
Compare
e962b2c to
799ed4b
Compare
799ed4b to
7297a78
Compare
f618da6 to
5d30bb2
Compare
5d30bb2 to
3bd7ac0
Compare
3bd7ac0 to
b50976c
Compare
8274069 to
d1493a9
Compare
d1493a9 to
1eb7ccf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.14.0→^5.0.0^9.6→^13.0Release Notes
nikic/PHP-Parser (nikic/php-parser)
v5.7.0Compare Source
Fixed
parentheses in the pretty printer.
Changed
Added
shouldPrintRawValueattribute toScalar\Int_, which makes the pretty printer use therawValueof the node. This can be used to print integers with separators.v5.6.2Compare Source
Fixed
has attributes.
chr()deprecation warning on PHP 8.5.Added
Param::isFinal()method.v5.6.1Compare Source
Fixed
Param::isPublic()for parameters with asymmetric visibility keyword.SplObjectStoragemethods.Added
kindattributes toCast\Int_,Cast\Bool_andCast\String_.These allow distinguishing the deprecated versions of these casts.
v5.6.0Compare Source
Added
clonewith arbitrary function arguments. This will be parsed as anExpr\FuncCallnode, instead of the usualExpr\Clone_node.function clonefor use in stubs.Expr\BinaryOp\Pipe.(void)cast, represented byExpr\Cast\Void_.finalmodifier on promoted properties.CallLike::getArg()to fetch an argument by position and name.v5.5.0Compare Source
Added
Stmt\Const_now has anattrGroupssubnode.weakReferencesoption toNodeConnectingVisitorandParentConnectingVisitor. Thiswill create the parent/next/prev references as WeakReferences, to avoid making the AST cyclic
and thus increasing GC pressure.
Changed
is PHP 7.4 or older (which is the default). This allows them to be interpreted as comments,
instead of causing a parse error. Specify a target version of PHP 8.0 or newer to restore the
previous behavior.
v5.4.0Compare Source
Added
Property::isAbstract()andProperty::isFinal()methods.PropertyHook::isFinal()method.Fixed
Param::isPromoted()andParam::isPublic()now returns true for parameters that have propertyhooks but no explicit visibility modifier.
PropertyHook::getStmts()now correctly desugars shortsethooks.set => $valuewill beexpanded to
set { $this->propertyName = $value; }. This requires thepropertyNameattributeon the hook to be set, which is now also set by the parser. If the attribute is not set,
getStmts()will throw an error for short set hooks, as it is not possible to produce a correctdesugaring.
v5.3.1Compare Source
Added
exitordie, to allow their use in stubs.v5.3.0Compare Source
Added
indentoption to pretty printer, which can be used to specify the indentation to use(defaulting to four spaces). This also allows using tab indentation.
Fixed
PropertyHooks in theNameResolver.Stmt\GroupUsenodes, making them consistent withStmt\Use_nodes.in
ValueErrors.v5.2.0Compare Source
Added
__PROPERTY__magic constant, represented using aNode\Scalar\MagicConst\Propertynode.hookssubnode onNode\Stmt\PropertyandNode\Param, which contains an array ofNode\PropertyHook.flagscan now hold theadditional bits
Modifiers::PUBLIC_SET,Modifiers::PROTECTED_SETandModifiers::PRIVATE_SET.argument or a single plain argument continues to use a
Node\Expr\Exit_node. Otherwise (e.g.if a named argument is used) it will be represented as a plain
Node\Expr\FuncCall.BuilderFactory::val().Removed
$array{0}from the PHP 8 parser. It is stillsupported by the PHP 7 parser. This is necessary in order to support property hooks.
v5.1.0Compare Source
Added
newexpressions without parentheses.Fixed
Changed
v5.0.2Compare Source
Fixed
printer.
Changed
Parserobjects. This means that no longer used parser objects areimmediately destroyed now, instead of requiring cycle GC.
PhpVersion::getNewestSupported()to report PHP 8.3 instead of PHP 8.2.v5.0.1Compare Source
Changed
T_*compatibility tokenswith incorrect type (such as string instead of int). This would lead to
TypeErrors down theline. Now an
Errorwill be thrown early to indicate the problem.v5.0.0Compare Source
See UPGRADE-5.0 for detailed migration instructions.
Fixed
PropertyItemandUseItem.sebastianbergmann/phpunit (phpunit/phpunit)
v13.0.5: PHPUnit 13.0.5Compare Source
Fixed
Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
v13.0.4: PHPUnit 13.0.4Compare Source
Fixed
Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
v13.0.3: PHPUnit 13.0.3Compare Source
Fixed
<ini />can silently failLearn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
v13.0.2: PHPUnit 13.0.2Compare Source
Deprecated
atLeast()with an argument that is not positivewith*()withoutexpects()Fixed
SourceMappermay be deleted prematurely when multiple PHPUnit processes run in parallelwith()is used withoutexpects()Learn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
v13.0.1: PHPUnit 13.0.1Compare Source
Fixed
method()returnsInvocationMockerinstead ofInvocationStubberfor test stubsLearn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
v13.0.0: PHPUnit 13.0.0Compare Source
Added
TestCase::invokeTestMethod()method for customizing test method invocationwithParameterSetsInOrder()andwithParameterSetsInAnyOrder()for expecting calls to the same method of a mock object but with different argumentsassertArraysAreIdentical(),assertArraysAreIdenticalIgnoringOrder(),assertArraysHaveIdenticalValues(),assertArraysHaveIdenticalValuesIgnoringOrder(),assertArraysAreEqual(),assertArraysAreEqualIgnoringOrder(),assertArraysHaveEqualValues(), andassertArraysHaveEqualValuesIgnoringOrder()assertions--test-files-file <file>CLI option to configure a file that contains the paths to the test files to be loaded (one file per line); use this when using CLI arguments is not an option due to argument length limitationsDeprecated
any()matcher (hard deprecation)Removed
Assert::isType()assertContainsOnly()andassertNotContainsOnly()containsOnly()testClassName()method on event value objects for hook methods called for test methodsConfiguration::includeTestSuite()andConfiguration::excludeTestSuite()--dont-report-useless-testsCLI option#[CoversNothing]on a test method#[RunClassInSeparateProcess]attributeLearn how to install or update PHPUnit 13.0 in the documentation.
Keep up to date with PHPUnit:
v12.5.14: PHPUnit 12.5.14Compare Source
Fixed
Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.13: PHPUnit 12.5.13Compare Source
Fixed
Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.12: PHPUnit 12.5.12Compare Source
Fixed
<ini />can silently failLearn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.11: PHPUnit 12.5.11Compare Source
Deprecated
with*()on test stubsFixed
SourceMappermay be deleted prematurely when multiple PHPUnit processes run in parallelwith()is used withoutexpects()Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.10: PHPUnit 12.5.10Compare Source
Fixed
Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.9: PHPUnit 12.5.9Compare Source
Added
Fixed
Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.8: PHPUnit 12.5.8Compare Source
Changed
.coveragefiles in pull requests, a PHPT test will no longer be run if the temporary file for writing code coverage information already exists before the test runsLearn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.7: PHPUnit 12.5.7Compare Source
Fixed
Count::getCountOf()for unusal implementations ofIteratororIteratorAggregateLearn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.6: PHPUnit 12.5.6Compare Source
Changed
Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.5: PHPUnit 12.5.5Compare Source
Deprecated
any()matcher (soft deprecation)Fixed
Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.4: PHPUnit 12.5.4Compare Source
Changed
#[AllowMockObjectsWithoutExpectations]attribute can now be used on the method levelFixed
Timer::start() has to be called before Timer::stop()Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.3: PHPUnit 12.5.3Compare Source
Changed
Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.2: PHPUnit 12.5.2Compare Source
Added
#[AllowMockObjectsWithoutExpectations]for excluding tests from the check that emits the notice for test methods that create a mock object but do not configure an expectation for itLearn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.1: PHPUnit 12.5.1Compare Source
Added
TestCase::getStubBuilder()(analogous toTestCase::getMockBuilder()) for creating (partial) test stubs using a fluent APILearn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.5.0: PHPUnit 12.5.0Compare Source
Added
--allCLI option to ignore test selection configured in XML configuration file<source>element in XML code coverage report optionalChanged
ThrowableinexpectExceptionObject()Learn how to install or update PHPUnit 12.5 in the documentation.
Keep up to date with PHPUnit:
v12.4.5: PHPUnit 12.4.5Compare Source
Changed
Fixed
Learn how to install or update PHPUnit 12.4 in the documentation.
Keep up to date with PHPUnit:
v12.4.4: PHPUnit 12.4.4Compare Source
Fixed
Learn how to install or update PHPUnit 12.4 in the documentation.
Keep up to date with PHPUnit:
v12.4.3: PHPUnit 12.4.3Compare Source
Fixed
STDOUTwhenrewind()failsLearn how to install or update PHPUnit 12.4 in the documentation.
Keep up to date with PHPUnit:
v12.4.2: PHPUnit 12.4.2Compare Source
Changed
Fixed
Learn how to install or update PHPUnit 12.4 in the documentation.
Keep up to date with PHPUnit:
v12.4.1: PHPUnit 12.4.1Compare Source
Fixed
--filterformat used by PhpStorm stopped workingDataProviderMethodCalledevent value objectLearn how to install or update PHPUnit 12.4 in the documentation.
Keep up to date with PHPUnit:
v12.4.0: PHPUnit 12.4.0Compare Source
Added
#[IgnoreDeprecations]attributeDeprecated
#[RunClassInSeparateProcess]attributeLearn how to install or update PHPUnit 12.4 in the documentation.
Keep up to date with PHPUnit:
v12.3.15: PHPUnit 12.3.15Compare Source
Fixed
failOnPhpunitWarning="false"has no effectLearn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.14: PHPUnit 12.3.14Compare Source
phpunit.pharrebuilt with updated dependenciesLearn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.13: PHPUnit 12.3.13Compare Source
phpunit.pharrebuilt with updated dependenciesLearn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.12: PHPUnit 12.3.12Compare Source
phpunit.pharrebuilt with updated dependenciesLearn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.11: PHPUnit 12.3.11Compare Source
Changed
__sleep()and__wakeup()from test double code generation on PHP >= 8.5Learn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.10: PHPUnit 12.3.10Compare Source
Changed
E_DEPRECATEDissues when building the test suiteLearn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.9: PHPUnit 12.3.9Compare Source
Changed
__sleep()method (which will be deprecated in PHP 8.5)Learn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.8: PHPUnit 12.3.8Compare Source
Fixed
Learn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.7: PHPUnit 12.3.7Compare Source
Changed
#[IgnorePhpunitDeprecations]is now considered for test runner deprecations (where applicable)Learn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.6Compare Source
v12.3.5: PHPUnit 12.3.5Compare Source
Changed
error_reporting=E_ALLfor--check-php-configurationFixed
expectUserDeprecationMessage*()fails when test is run in separate processLearn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.4: PHPUnit 12.3.4Compare Source
Changed
--check-php-configurationFixed
ini_set('error_log')sets filepath outsideopen_basedirLearn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.3: PHPUnit 12.3.3Compare Source
Fixed
#[IgnorePhpunitDeprecations]is now considered for test runner deprecations" from PHPUnit 12.3.1)Learn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.2: PHPUnit 12.3.2Compare Source
Changed
testSplObjectStoragemethods that will be deprecated in PHP 8.5Learn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.1: PHPUnit 12.3.1Compare Source
Added
--check-php-configurationCLI option for checking whether PHP is configured for testingChanged
#[IgnorePhpunitDeprecations]is now considered for test runner deprecations (where applicable)Fixed
#[TestWith]or#[TestWithJson]attributes are now properly reportedDataProviderMethodFinishedevent is now also emitted when the provided data set has an invalid keyLearn how to install or update PHPUnit 12.3 in the documentation.
Keep up to date with PHPUnit:
v12.3.0: PHPUnit 12.3.0Compare Source
Added
#[IgnorePHPUnitWarnings]attribute for ignoring PHPUnit warnings#[TestDoxFormatter]and#[TestDoxFormatterExternal]attributes for configuring a custom TestDox formatter for tests that use data from data providersTestRunner\ChildProcessErroredeventConfiguration::includeTestSuites()andConfiguration::excludeTestSuites()Changed
@<data-set-name>format (compatible with--filterCLI option) in defect messages#[DataProvider*]attributes are mixed with#[TestWith*]attributesDeprecated
Configuration::includeTestSuite(), useConfiguration::includeTestSuites()insteadConfiguration::excludeTestSuite(), useConfiguration::excludeTestSuites()instead#[CoversNothing]on a test methodHow to install or update PHPUnit
v12.2.9: PHPUnit 12.2.9Compare Source
Fixed
fileattribute of<testClass>node of XML test list can be wrongHow to install or update PHPUnit
v12.2.8: PHPUnit 12.2.8Compare Source
Fixed
How to install or update PHPUnit
v12.2.7: PHPUnit 12.2.7Compare Source
Fixed
defects,randomconfiguration is supported by implementation, but it is not allowed by the XML configuration file schematestprefixHow to install or update PHPUnit
v12.2.6: PHPUnit 12.2.6Compare Source
Fixed
@no-named-argumentsleads to static analysis errors for variadic argumentsHow to install or update PHPUnit
v12.2.5: PHPUnit 12.2.5Compare Source
Fixed
<testsuite>element is missing requirednameattributeHow to install or update PHPUnit
v12.2.4: PHPUnit 12.2.4Compare Source
Changed
--include-git-informationCLI option or the `includeGitInformatioConfiguration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.