Browse Source

Update builds to remove PHP 7 support

Timothy J. Warren 10 months ago
parent
commit
516ddcd76d
4 changed files with 1 additions and 13 deletions
  1. 0
    5
      .gitlab-ci.yml
  2. 0
    4
      .travis.yml
  3. 1
    1
      src/ConnectionManager.php
  4. 0
    3
      tests/index.php

+ 0
- 5
.gitlab-ci.yml View File

@@ -15,11 +15,6 @@ variables:
15 15
     POSTGRES_USER: test
16 16
     POSTGRES_PASSWORD: test
17 17
 
18
-test:7:
19
-    image: php:7
20
-    script:
21
-      - phpunit -c build --no-coverage
22
-
23 18
 test:7.1:
24 19
     image: php:7.1
25 20
     script:

+ 0
- 4
.travis.yml View File

@@ -3,10 +3,8 @@ sudo: false
3 3
 language: php
4 4
 
5 5
 php:
6
-  - 7
7 6
   - 7.1
8 7
   - 7.2
9
-  - hhvm
10 8
   - nightly
11 9
 
12 10
 before_script:
@@ -27,6 +25,4 @@ after_script:
27 25
 
28 26
 matrix:
29 27
   allow_failures:
30
-    - php: 7
31 28
     - php: nightly
32
-    - php: hhvm

+ 1
- 1
src/ConnectionManager.php View File

@@ -106,7 +106,7 @@ final class ConnectionManager {
106 106
 		{
107 107
 			return $this->connections[$name];
108 108
 		}
109
-		elseif (empty($name) && ! empty($this->connections)) // Otherwise, return the last one
109
+		else if (empty($name) && ! empty($this->connections)) // Otherwise, return the last one
110 110
 		{
111 111
 			return end($this->connections);
112 112
 		}

+ 0
- 3
tests/index.php View File

@@ -35,7 +35,6 @@ namespace Query\Tests {
35 35
 		{
36 36
 			$class = \get_class($this);
37 37
 
38
-			echo '<pre>';
39 38
 			echo 'Ran test suite: ' . $class . '<br />';
40 39
 
41 40
 			if (method_exists($class, 'setupBeforeClass')) {
@@ -49,8 +48,6 @@ namespace Query\Tests {
49 48
 		{
50 49
 			$class = \get_class($this);
51 50
 
52
-			echo '</pre>';
53
-
54 51
 			if (method_exists($class, 'tearDownAfterClass')) {
55 52
 				$class::tearDownAfterClass();
56 53
 			}