All notable changes to this project will be documented in this file, in reverse chronological order by release.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
3.10.2 - 2024-06-19
- Support for PHP 8.4
SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation
- superseded by PHPStan (strict rules)Squiz.Commenting.FunctionComment.InvalidReturnVoid
- superseded by PHPStan
3.10.1 - 2024-02-20
Squiz.Commenting.FunctionComment.MissingParamType
- superseded by PHPStan
3.10.0 - 2023-12-10
- Support for PHP 8.3
- Rulesets for PHP 8.2 and 8.3
squizlabs/php_codesniffer
upgraded to^3.8.0
3.9.1 - 2023-12-09
JumpStatements
propertycontrolStructures
renamed tojumpStatements
- Fixes
ERROR: Ruleset invalid. Property "controlStructures" does not exist on sniff SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing
- Fixes
3.9.0 - 2023-10-14
Generic.VersionControl.GitMergeConflict
- checks whether unresolved git conflict is in the file
SlevomatCodingStandard.Functions.NamedArgumentSpacing
- checks spacing in named argument
slevomat/coding-standard
upgraded to^8.14.0
3.8.0 - 2023-06-26
SlevomatCodingStandard.Files.TypeNameMatchesFileName
- just to ensure match between file and (non fully qualified) class name
- it can still be overridden by custom settings
Squiz.Commenting.FunctionComment.MissingParamName
- superseded by PHPStan
SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator
- superseded by PHPStan
3.7.1 - 2023-06-08
PSR1.Classes.ClassDeclaration
sniff- superseded by optional
SlevomatCodingStandard.Files.TypeNameMatchesFileName
sniff
- superseded by optional
Generic.PHP.DeprecatedFunctions
- use
phpstan/phpstan-deprecation-rules
instead
- use
SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint
- use
phpstan/phpstan
instead
- use
3.7.0 - 2023-05-14
SlevomatCodingStandard.Arrays.ArrayAccess
sniff
slevomat/coding-standard
upgraded to^8.12.0
3.6.0 - 2023-04-24
SlevomatCodingStandard.Commenting.AnnotationName
sniff
slevomat/coding-standard
upgraded to^8.11.0
SlevomatCodingStandard.Functions.StrictCall
- Use
phpstan/phpstan-strict-rules
instead
- Use
3.5.0 - 2023-04-10
SlevomatCodingStandard.Classes.DisallowStringExpressionPropertyFetch
sniffSlevomatCodingStandard.Strings.DisallowVariableParsing
sniff- New Composer keywords to suggest --dev during require
- Forbidden function aliases:
diskfreespace()
->disk_free_space()
ftp_quit
->ftp_close
get_required_files
->get_included_files
gzputs
->gzwrite
ldap_close
->ldap_unbind
ldap_modify
->ldap_mod_replace
msgpack_pack
->msgpack_serialize
msgpack_unpack
->msgpack_unserialize
odbc_do
->odbc_exec
odbc_field_precision
->odbc_field_len
openssl_get_privatekey
->openssl_pkey_get_private
openssl_get_publickey
->openssl_pkey_get_public
imap_create
->imap_createmailbox
imap_fetchtext
->imap_body
imap_header
->imap_headerinfo
imap_listmailbox
->imap_list
imap_listsubscribed
->imap_lsub
imap_rename
->imap_renamemailbox
imap_scan
->imap_listscan
imap_scanmailbox
->imap_listscan
pcntl_errno
->pcntl_get_last_error
posix_errno
->posix_get_last_error
read_exif_data
->exif_read_data
session_commit
->session_write_close
set_file_buffer
->stream_set_write_buffer
socket_getopt
->socket_get_option
socket_setopt
->socket_set_option
srand
->mt_srand
user_error
->trigger_error
slevomat/coding-standard
upgraded to^8.10.0
delete()
as an alias ofunset()
, because it does not exist
3.4.0 - 2023-03-28
SlevomatCodingStandard.Classes.EnumCaseSpacing
sniffSlevomatCodingStandard.Classes.RequireSelfReference
sniffSlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator
sniff
slevomat/coding-standard
upgraded to^8.9.0
3.3.5 - 2023-02-07
- Moved IntelliJ files from src/.idea to ide-config/.idea to prevent them being picked up by static analysis tools
3.3.4 - 2022-12-12
Squiz.Commenting.VariableComment.VarOrder
error- redundant and colliding with
superfluous
SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectAnnotationsGroup
- redundant and colliding with
superfluous
3.3.3 - 2022-12-09
- Composer
- allows PHP 8.2
3.3.2 - 2022-11-04
SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration
allows@var
abovereturn
3.3.1 - 2022-11-03
SlevomatCodingStandard.Commenting.DocCommentSpacing
supports sorting ofassert
,param-out
,this-out
andself-out
and theirphpstan-
andpsalm-
prefixed variants
Generic.Commenting.DocComment
- redundant functions of superfluous
Squiz.WhiteSpace.SuperfluousWhitespace
andSlevomatCodingStandard.Commenting.DocCommentSpacing
- redundant functions of superfluous
3.3.0 - 2022-10-05
SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing
sniffSlevomatCodingStandard.Attributes.DisallowAttributesJoining
sniffSlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine
sniffSlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment
sniff
slevomat/coding-standard
upgraded to^8.6.0
3.2.1 - 2022-10-05
SlevomatCodingStandard.Files.LineLength
- ignores comments
3.2.0 - 2022-09-22
SlevomatCodingStandard.PHP.RequireExplicitAssertion
- Option
enableIntegerRanges
is enabled - Option
enableAdvancedStringTypes
is enabled
- Option
slevomat/coding-standard
upgraded to^8.5.0
3.1.2 - 2022-07-17
SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint
- use
phpstan/phpstan
instead - PHPStan does the same check and respects inheritance
- use
SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingAnyTypeHint
- use
phpstan/phpstan
instead - PHPStan does the same check and respects inheritance
- use
3.1.1 - 2022-07-10
SlevomatCodingStandard.Operators.DisallowEqualOperators
sniff- use
phpstan/phpstan-strict-rules
with bleeding edge instead
- use
3.1.0 - 2022-07-08
SlevomatCodingStandard.Classes.BackedEnumTypeSpacing
sniff- Checks number of spaces before
:
and before type.
- Checks number of spaces before
slevomat/coding-standard
upgraded to^8.2.0
SlevomatCodingStandard.Classes.PropertyDeclaration
sniff- Checks promoted properties
- Checks number of spaces between property modifiers
3.0.0 - 2022-06-17
- PHP 8.1 support
slevomat/coding-standard
upgraded to^8.0.0
- PHP 7.1 support