Skip to content

Commit 119cf31

Browse files
authored
Add preliminary PHP 7.4 testing (#154)
Add preliminary PHP 7.4 testing
2 parents 1e81950 + b11f5e3 commit 119cf31

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

+8-1
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
@@ -75,3 +78,7 @@ jobs:
7578
php: 5.4
7679
dist: precise
7780
env: WP_VERSION=5.1
81+
allow_failures:
82+
- stage: test
83+
php: 7.4snapshot
84+
env: WP_VERSION=latest

src/DB_Command.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public function export( $args, $assoc_args ) {
467467
} else {
468468
// phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand -- WordPress is not loaded.
469469
$hash = substr( md5( mt_rand() ), 0, 7 );
470-
$result_file = sprintf( '%s-%s-%s.sql', DB_NAME, date( 'Y-m-d' ), $hash );
470+
$result_file = sprintf( '%s-%s-%s.sql', DB_NAME, date( 'Y-m-d' ), $hash ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
471471

472472
}
473473
$stdout = ( '-' === $result_file );

0 commit comments

Comments
 (0)