Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.

Commit f766370

Browse files
committed
Deprecates PHP5
Fixes #244
1 parent 2795352 commit f766370

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

UPGRADE-4.0.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[Behat Deprecation
2+
Extension](https://github.com/caciobanu/behat-deprecation-extension) can help
3+
you to find and fix deprecation notices.
4+
5+
# Upgrade from 3.x to 4.0
6+
7+
* PHP 5 is not supported, please upgrade to PHP 7

src/Extension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ public function getConfigKey()
2020

2121
public function initialize(ExtensionManager $extensionManager)
2222
{
23+
if (PHP_MAJOR_VERSION === 5) {
24+
@trigger_error('The behatch context extension will drop support for PHP 5 in version 4.0', E_USER_DEPRECATED);
25+
}
2326
}
2427

2528
public function process(ContainerBuilder $container)

0 commit comments

Comments
 (0)