Skip to content
This repository was archived by the owner on Jul 7, 2018. It is now read-only.

Commit 1e912ed

Browse files
committed
Drop PHP < 7.1 support
1 parent bb897a6 commit 1e912ed

File tree

11 files changed

+46
-33
lines changed

11 files changed

+46
-33
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ dist: trusty
44
language: php
55

66
php:
7-
- 7.0
87
- 7.1
98
- nightly
109

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This extension adds [Soft Reference](https://en.wikipedia.org/wiki/Soft_referenc
99
data structures that require advanced referencing model.
1010

1111

12-
**PHP >= 7.0.3 required**
12+
**PHP >= 7.1 required**
1313

1414
## Usage
1515

@@ -196,7 +196,7 @@ You may also want to add php-ref extension as a [composer.json dependency](https
196196

197197
"require": {
198198
...
199-
"ext-ref": "~0.1.0"
199+
"ext-ref": "*"
200200
...
201201
}
202202

appveyor.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ platform:
44

55
environment:
66
matrix:
7-
- PHP_VERSION: 7.0.20
7+
- PHP_VERSION: 7.1.8
88
THREAD_SAFE: true
9-
- PHP_VERSION: 7.0.20
10-
THREAD_SAFE: false
11-
- PHP_VERSION: 7.1.6
12-
THREAD_SAFE: true
13-
- PHP_VERSION: 7.1.6
9+
- PHP_VERSION: 7.1.8
1410
THREAD_SAFE: false
1511

1612

config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ if test "$PHP_REF" != "no"; then
1111
PHP_REF_FOUND_VERSION=`${PHP_CONFIG} --version`
1212
PHP_REF_FOUND_VERNUM=`${PHP_CONFIG} --vernum`
1313

14-
if test "$PHP_REF_FOUND_VERNUM" -lt "70003"; then
15-
AC_MSG_ERROR([not supported. Need a PHP version >= 7.0.3 (found $PHP_REF_FOUND_VERSION)])
14+
if test "$PHP_REF_FOUND_VERNUM" -lt "70100"; then
15+
AC_MSG_ERROR([not supported. PHP version >= 7.1 required (found $PHP_REF_FOUND_VERSION)])
1616
else
1717
AC_MSG_RESULT([supported ($PHP_REF_FOUND_VERSION)])
1818
fi

config.w32

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// $Id$
2-
// vim:ft=javascript
3-
41
ARG_ENABLE("ref", "enable ref support", "no");
52

63
if (PHP_REF != "no") {

package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
<dependencies>
157157
<required>
158158
<php>
159-
<min>7.0.3</min>
159+
<min>7.1.0</min>
160160
</php>
161161
<pearinstaller>
162162
<min>1.4.0</min>

php_ref.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ extern zend_module_entry php_ref_module_entry;
2626
#define PHP_REF_REVISION "dev"
2727
#endif
2828

29-
#if PHP_VERSION_ID < 70003
29+
#if PHP_VERSION_ID < 70100
3030
// should never get her, but just in case
31-
#error PHP >= 7.0.3 required
31+
#error PHP >= 7.1 required
3232
#endif
3333

3434
#define PHP_REF_NS "Ref"

php_ref_reference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ ZEND_END_ARG_INFO()
623623
PHP_REF_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ref_reference_valid, ZEND_RETURN_VALUE, 0, _IS_BOOL, 0)
624624
ZEND_END_ARG_INFO()
625625

626-
ZEND_BEGIN_ARG_INFO_EX(arginfo_ref_reference_notifier, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
626+
PHP_REF_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ref_reference_notifier, ZEND_SEND_BY_VAL, 0, IS_CALLABLE, 1)
627627
ZEND_ARG_CALLABLE_INFO(0, notify, 1)
628628
ZEND_END_ARG_INFO()
629629

stubs/src/AbstractReference.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public function valid(): bool
6565
*
6666
* If any value provided, any existent notifier will be replaced and returned.
6767
*
68-
* @return callable | null Current notifier or the old one when replacing it with provided value.
68+
* @return callable|null Current notifier or the old one when replacing it with provided value.
6969
*/
70-
public function notifier(callable $notify = null)
70+
public function notifier(callable $notify = null): ?callable
7171
{
7272
}
7373
}

stubs/src/NotifierException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class NotifierException extends Exception
2929
*
3030
* @return Throwable[]
3131
*/
32-
public function getExceptions() : array
32+
public function getExceptions(): array
3333
{
3434
return $this->exceptions;
3535
}

0 commit comments

Comments
 (0)