Browse Source

Update builds to remove PHP 7 support

keep-around/516ddcd76d07f1f9973f5dea89a9c4dbdb2b430c
Timothy Warren 1 year 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:
POSTGRES_USER: test
POSTGRES_PASSWORD: test

test:7:
image: php:7
script:
- phpunit -c build --no-coverage

test:7.1:
image: php:7.1
script:

+ 0
- 4
.travis.yml View File

@@ -3,10 +3,8 @@ sudo: false
language: php

php:
- 7
- 7.1
- 7.2
- hhvm
- nightly

before_script:
@@ -27,6 +25,4 @@ after_script:

matrix:
allow_failures:
- php: 7
- php: nightly
- php: hhvm

+ 1
- 1
src/ConnectionManager.php View File

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

+ 0
- 3
tests/index.php View File

@@ -35,7 +35,6 @@ namespace Query\Tests {
{
$class = \get_class($this);

echo '<pre>';
echo 'Ran test suite: ' . $class . '<br />';

if (method_exists($class, 'setupBeforeClass')) {
@@ -49,8 +48,6 @@ namespace Query\Tests {
{
$class = \get_class($this);

echo '</pre>';

if (method_exists($class, 'tearDownAfterClass')) {
$class::tearDownAfterClass();
}

Loading…
Cancel
Save