Skip to content

Commit ae6f849

Browse files
authored
Raise PHP to 7.1, fix #60
1 parent 9335fe6 commit ae6f849

File tree

6 files changed

+141
-99
lines changed

6 files changed

+141
-99
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog
22
All 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.

WPForms/Sniffs/Comments/ReturnTagHooks.php renamed to WPForms/Sniffs/Comments/ReturnTagHooksSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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

WPForms/Tests/Tests/Comments/ReturnTagHooksTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace WPForms\Tests\Comments;
44

55
use 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 ] );

WPForms/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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">

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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": {

0 commit comments

Comments
 (0)