Skip to content

Commit 008f162

Browse files
authored
Strip PHP 7.1 support and Doctrine 2.6 testing (#360)
1 parent 53a71be commit 008f162

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
language: php
22

33
php:
4-
- 7.1
54
- 7.2
65
- 7.3
76
- 7.4
87

9-
env:
10-
- DOCTRINE_VERSION=2.6.*
11-
- DOCTRINE_VERSION=2.7.*
12-
138
install:
149
- composer self-update
1510
- composer install
16-
- composer require doctrine/orm:${DOCTRINE_VERSION} --dev --prefer-source --update-with-dependencies
1711

1812
notifications:
1913
email: false
2014

2115
script:
2216
- make test
23-
- if [[ $DOCTRINE_VERSION == 2.7.* && $TRAVIS_PHP_VERSION == 7.4 ]]; then make lint; fi
17+
- if [[ $TRAVIS_PHP_VERSION == 7.4 ]]; then make lint; fi
2418

2519
dist: bionic
2620

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ MySQL, Oracle, PostgreSQL and SQLite.
1515
|:--:|:---------:|
1616
| MySQL | `ACOS, ADDTIME, AES_DECRYPT, AES_ENCRYPT, ANY_VALUE, ASCII, ASIN, ATAN, ATAN2, BINARY, BIT_COUNT, BIT_XOR, CAST, CEIL, CHAR_LENGTH, COLLATE, CONCAT_WS, CONVERT_TZ, COS, COT, COUNTIF, CRC32, DATE, DATE_FORMAT, DATEADD, DATEDIFF, DATESUB, DAY, DAYNAME, DAYOFWEEK, DAYOFYEAR, DEGREES, DIV, EXP, EXTRACT, FIELD, FIND_IN_SET, FLOOR, FORMAT, FROM_BASE64, FROM_UNIXTIME, GREATEST, GROUP_CONCAT, HEX, HOUR, IFELSE, IFNULL, INET_ATON, INET_NTOA, INET6_ATON, INET6_NTOA, INSTR, IS_IPV4, IS_IPV4_COMPAT, IS_IPV4_MAPPED, IS_IPV6, JSON_CONTAINS, JSON_DEPTH, JSON_LENGTH, LAG, LAST_DAY, LEAD, LEAST, LOG, LOG10, LOG2, LPAD, MAKEDATE, MATCH, MD5, MINUTE, MONTH, MONTHNAME, NOW, NULLIF, OVER, PERIOD_DIFF, PI, POWER, QUARTER, RADIANS, RAND, REGEXP, REPLACE, ROUND, RPAD, SECOND, SECTOTIME, SHA1, SHA2, SIN, SOUNDEX, STD, STDDEV, STRTODATE, STR_TO_DATE, SUBSTRING_INDEX, TAN, TIME, TIMEDIFF, TIMESTAMPADD, TIMESTAMPDIFF, TIMETOSEC, TRUNCATE, UNHEX, UNIX_TIMESTAMP, UTC_TIMESTAMP, UUID_SHORT, VARIANCE, WEEK, WEEKDAY, YEAR, YEARMONTH, YEARWEEK` |
1717
| Oracle | `CEIL, DAY, FLOOR, HOUR, LISTAGG, MINUTE, MONTH, NVL, SECOND, TO_CHAR, TO_DATE, TRUNC, YEAR` |
18-
| Sqlite | `CASE WHEN THEN ELSE END, DATE, DATE_FORMAT*, DAY, HOUR, IFNULL, JULIANDAY, MINUTE, MONTH, REPLACE, ROUND, SECOND, STRFTIME, WEEK, WEEKDAY, YEAR` |
18+
| SQLite | `CASE WHEN THEN ELSE END, DATE, DATE_FORMAT*, DAY, HOUR, IFNULL, JULIANDAY, MINUTE, MONTH, REPLACE, ROUND, SECOND, STRFTIME, WEEK, WEEKDAY, YEAR` |
1919
| PostgreSQL | `AT_TIME_ZONE, COUNT_FILTER, DATE, DATE_PART, DATE_TRUNC, DAY, EXTRACT, GREATEST, HOUR, LEAST, MINUTE, MONTH, REGEXP_REPLACE, SECOND, STRING_AGG, TO_CHAR, TO_DATE, YEAR` |
2020

21-
> Note: Sqlite date functions are implemented as `strftime(format, value)`.
22-
Sqlite only supports the [most common formats](https://www.sqlite.org/lang_datefunc.html),
23-
so `date_format` will convert the mysql substitutions to the closest available sqlite substitutions.
21+
> Note: SQLite date functions are implemented as `strftime(format, value)`.
22+
SQLite only supports the [most common formats](https://www.sqlite.org/lang_datefunc.html),
23+
so `date_format` will convert the mysql substitutions to the closest available SQLite substitutions.
2424
This means `date_format(field, '%b %D %Y') -> Jan 1st 2015` becomes `strftime('%m %d %Y', field) -> 01 01 2015`.
2525

2626
Installation

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
22
"name": "beberlei/doctrineextensions",
33
"type": "library",
4-
"description": "A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL and Oracle.",
4+
"description": "A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.",
55
"keywords": ["doctrine", "orm", "database"],
66
"license": "BSD-3-Clause",
77
"authors": [
88
{"name": "Benjamin Eberlei", "email": "[email protected]"},
99
{"name": "Steve Lacey", "email": "[email protected]"}
1010
],
1111
"require": {
12-
"php": "^7.1",
13-
"doctrine/orm": "^2.6"
12+
"php": "^7.2 || ^8.0",
13+
"doctrine/orm": "^2.7"
1414
},
1515
"require-dev": {
1616
"friendsofphp/php-cs-fixer": "^2.14",
1717
"nesbot/carbon": "*",
18-
"phpunit/phpunit": "^7.0 || ^8.0",
19-
"symfony/yaml": "^4.2",
18+
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
19+
"symfony/yaml": "^4.2 || ^5.0",
2020
"zf1/zend-date": "^1.12",
2121
"zf1/zend-registry": "^1.12"
2222
},

0 commit comments

Comments
 (0)