File tree Expand file tree Collapse file tree 6 files changed +141
-99
lines changed Expand file tree Collapse file tree 6 files changed +141
-99
lines changed Original file line number Diff line number Diff line change 11# Changelog
22All notable changes to this project will be documented in this file and formatted via [ this recommendation] ( https://keepachangelog.com/ ) .
33
4+ ## [ 1.3.0] - 2024-12-16
5+ ### Changed
6+ - The minimum supported PHP version is now 7.1.
7+
8+ ### Fixed
9+ - Return tag hook sniff did not work.
10+
411## [ 1.2.3] - 2024-08-29
512- Rule "WordPressVIPMinimum.Performance.WPQueryParams" is added as required by Plugin Check Plugin.
613- Rule "WordPress.DB.DirectDatabaseQuery.DirectQuery" is not suppressed anymore as required by the Plugin Check Plugin.
Original file line number Diff line number Diff line change 1212 *
1313 * @since 1.0.0
1414 */
15- class ReturnTagHooks extends BaseSniff implements Sniff {
15+ class ReturnTagHooksSniff extends BaseSniff implements Sniff {
1616
1717 use CommentTag;
1818
Original file line number Diff line number Diff line change 33namespace WPForms \Tests \Comments ;
44
55use WPForms \Tests \TestCase ;
6- use WPForms \Sniffs \Comments \ReturnTagHooks ;
6+ use WPForms \Sniffs \Comments \ReturnTagHooksSniff ;
77
88/**
99 * Class ReturnTagHooksTest.
@@ -19,7 +19,7 @@ class ReturnTagHooksTest extends TestCase {
1919 */
2020 public function testProcess () {
2121
22- $ phpcsFile = $ this ->process ( new ReturnTagHooks () );
22+ $ phpcsFile = $ this ->process ( new ReturnTagHooksSniff () );
2323
2424 $ this ->fileHasErrors ( $ phpcsFile , 'UnnecessaryReturnTag ' , [ 80 ] );
2525 $ this ->fileHasErrors ( $ phpcsFile , 'AddReturnTag ' , [ 106 ] );
Original file line number Diff line number Diff line change 1414 <arg name =" parallel" value =" 12" />
1515 <arg name =" extensions" value =" php" />
1616
17- <config name =" testVersion" value =" 7.0 -" />
17+ <config name =" testVersion" value =" 7.1 -" />
1818
1919 <!-- Rules: Check PHP version compatibility. -->
2020 <rule ref =" PHPCompatibility" >
Original file line number Diff line number Diff line change 1414 "require" : {
1515 "automattic/vipwpcs" : " ^3.0.1" ,
1616 "phpcompatibility/php-compatibility" : " ^9.3.5" ,
17- "squizlabs/php_codesniffer" : " ^3.10 .2" ,
17+ "squizlabs/php_codesniffer" : " ^3.11 .2" ,
1818 "wp-coding-standards/wpcs" : " ^3.1.0"
1919 },
2020 "require-dev" : {
You can’t perform that action at this time.
0 commit comments