Skip to content

Commit 6a05821

Browse files
authored
Add preliminary PHP 7.4 testing (#193)
Add preliminary PHP 7.4 testing
2 parents 398b454 + 80e4171 commit 6a05821

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sudo: false
22
dist: trusty
33

44
language: php
5-
php: 7.2
5+
php: 7.3
66

77
notifications:
88
email:
@@ -50,6 +50,9 @@ jobs:
5050
- composer lint
5151
- composer phpcs
5252
env: BUILD=sniff
53+
- stage: test
54+
php: 7.4snapshot
55+
env: WP_VERSION=latest
5356
- stage: test
5457
php: 7.3
5558
env: WP_VERSION=latest
@@ -73,4 +76,9 @@ jobs:
7376
env: WP_VERSION=trunk
7477
- stage: test
7578
php: 5.4
79+
dist: precise
7680
env: WP_VERSION=5.1
81+
allow_failures:
82+
- stage: test
83+
php: 7.4snapshot
84+
env: WP_VERSION=latest

src/MakePotCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -743,15 +743,15 @@ protected function get_file_comment() {
743743
if ( isset( $this->main_file_data['License'] ) ) {
744744
return sprintf(
745745
"Copyright (C) %1\$s %2\$s\nThis file is distributed under the %3\$s.",
746-
date( 'Y' ),
746+
date( 'Y' ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
747747
$this->main_file_data['Author'],
748748
$this->main_file_data['License']
749749
);
750750
}
751751

752752
return sprintf(
753753
"Copyright (C) %1\$s %2\$s\nThis file is distributed under the same license as the %3\$s theme.",
754-
date( 'Y' ),
754+
date( 'Y' ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
755755
$this->main_file_data['Author'],
756756
$this->main_file_data['Theme Name']
757757
);
@@ -761,15 +761,15 @@ protected function get_file_comment() {
761761
if ( isset( $this->main_file_data['License'] ) ) {
762762
return sprintf(
763763
"Copyright (C) %1\$s %2\$s\nThis file is distributed under the %3\$s.",
764-
date( 'Y' ),
764+
date( 'Y' ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
765765
$this->main_file_data['Author'],
766766
$this->main_file_data['License']
767767
);
768768
}
769769

770770
return sprintf(
771771
"Copyright (C) %1\$s %2\$s\nThis file is distributed under the same license as the %3\$s plugin.",
772-
date( 'Y' ),
772+
date( 'Y' ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
773773
$this->main_file_data['Author'],
774774
$this->main_file_data['Plugin Name']
775775
);

0 commit comments

Comments
 (0)