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.
Overview
The following dependencies have been updated by dependencies.io:
composer.lock
was updated (including 2 updated direct dependencies)Details
composer.lock
1 transitive dependencies were updated, 0 were added, and 0 removed. View the git diff for more details about exactly what changed.
The following 2 direct dependencies were updated:
psr/log
was updated from 1.0.2 to 1.1.01.1.0
TestLogger
, useful for testing purposes; see Added a test logger Seldaek/monolog#1229 (#57, thanks gmponos)squizlabs/php_codesniffer
was updated from 3.3.2 to 3.4.03.4.0
Deprecations
Generic.Formatting.NoSpaceAfterCast Sniff
The
Generic.Formatting.NoSpaceAfterCast
sniff has been deprecated and will be removed in version 4.The functionality of this sniff is now available in the
Generic.Formatting.SpaceAfterCast
sniff. Include theGeneric.Formatting.SpaceAfterCast
sniff and set thespacing
property to0
to retain the existing functionality. As soon as possible, replace all instances of the old sniff code with the new sniff code and property setting in your ruleset.xml files. The existing sniff will continue to work until version 4 has been released.Other Changes
T_BITWISE_NOT
added for the bitwise not operatorT_NONE
T_NONE
tokens with a tilde as the contents must now also look forT_BITWISE_NOT
T_NONE
as well asT_BITWISE_NOT
to support older PHP_CodeSniffer versionsT_BINARY_CAST
b
inb"some string with $var"
would be aT_BINARY_CAST
, but only when the string contained a varb
is always tokenized asT_BINARY_CAST
(binary)
fromT_STRING_CAST
toT_BINARY_CAST
extends="true"
to the property tag<property name="forbiddenFunctionNames" type="array" extend="true">
$XDG_CACHE_HOME
is set and points to a valid directory, it will be used for caching instead of the system temp directoryFile::getMethodParamaters()
method now includes ahas_body
array index in the return valueFile::getTokensAsString()
method now throws an exception if the$start
param is invalid$length
param is invalid, an empty string will be returnedGeneric.CodeAnalysis.EmptyPHPStatement
sniffGeneric.Formatting.SpaceBeforeCast
sniffGeneric.VersionControl.GitMergeConflict
sniffGeneric.WhiteSpace.IncrementDecrementSpacing
sniffPSR12.Functions.NullableTypeDeclaration
sniffGeneric.NamingConventions.CamelCapsFunctionName
PEAR.NamingConventions.ValidFunctionName
PSR1.Methods.CamelCapsMethodName
PSR2.Methods.MethodDeclaration
Squiz.Scope.MethodScope
Squiz.Scope.StaticThisUsage
Generic.CodeAnalysis.UnusedFunctionParameter
now only skips functions with empty bodies when the class implements an interfaceGeneric.CodeAnalysis.UnusedFunctionParameter
now has additional error codes to indicate where unused params were foundFoundInExtendedClass
: when the class extends anotherFoundInImplementedInterface
: when the class implements an interfaceFound
: used in all other cases, including closuresBeforeLastUsed
: the unused param was positioned before the last used param in the function signatureAfterLastUsed
: the unused param was positioned after the last used param in the function signatureFound
FoundBeforeLastUsed
FoundAfterLastUsed
FoundInExtendedClass
FoundInExtendedClassBeforeLastUsed
FoundInExtendedClassAfterLastUsed
FoundInImplementedInterface
FoundInImplementedInterfaceBeforeLastUsed
FoundInImplementedInterfaceAfterLastUsed
Generic.Classes.DuplicateClassName
now inspects traits for duplicate names as well as classes and interfacesGeneric.Files.InlineHTML
now ignores a BOM at the start of the fileGeneric.PHP.CharacterBeforePHPOpeningTag
now ignores a BOM at the start of the fileGeneric.Formatting.SpaceAfterCast
now has a setting to specify how many spaces are required after a type castspacing
setting in a ruleset.xml file to changeGeneric.Formatting.SpaceAfterCast
now has a setting to ignore newline characters after a type castignoreNewlines
setting in a ruleset.xml file to changeGeneric.Formatting.SpaceAfterNot
now has a setting to specify how many spaces are required after a NOT operatorspacing
setting in a ruleset.xml file to changeGeneric.Formatting.SpaceAfterNot
now has a setting to ignore newline characters after the NOT operatorignoreNewlines
setting in a ruleset.xml file to changePEAR.Functions.FunctionDeclaration
now checks spacing before the opening parenthesis of functions with no bodyPEAR.Functions.FunctionDeclaration
now enforces no space before the semicolon in functions with no bodyPSR2.Classes.PropertyDeclaration
now checks the order of property modifier keywordsPSR2.Methods.MethodDeclaration
now checks method declarations inside traitsSquiz.Commenting.InlineComment
now has better detection of comment block boundariesSquiz.Classes.ClassFileName
now checks that a trait name matches the filenameSquiz.Classes.SelfMemberReference
now supports scoped declarations and anonymous classesSquiz.Classes.SelfMemberReference
now fixes multiple errors at once, increasing fixer performanceSquiz.Functions.LowercaseFunctionKeywords
now checks abstract and final prefixes, and auto-fixes errorsSquiz.Objects.ObjectMemberComma.Missing
has been renamed toSquiz.Objects.ObjectMemberComma.Found
Squiz.WhiteSpace.ObjectOperatorSpacing
is now more tolerant of parse errorsSquiz.WhiteSpace.ObjectOperatorSpacing
now fixes errors more efficiently