Skip to content

Commit 084ed05

Browse files
authored
Merge pull request #83 from thunderer/php-7.4
PHP 7.4
2 parents d19ded9 + e17630e commit 084ed05

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist: trusty
12
language: php
23

34
php:
@@ -9,6 +10,7 @@ php:
910
- 7.1
1011
- 7.2
1112
- 7.3
13+
- 7.4snapshot
1214
- hhvm
1315
- nightly
1416

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PHP ?= 7.3
1+
PHP ?= 7.4
22

33
composer-update:
44
docker-compose run --rm composer composer config platform.php ${PHP}

docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ services:
1717
php-7.1: { image: 'php:7.1', volumes: ['.:/app'] }
1818
php-7.2: { image: 'php:7.2', volumes: ['.:/app'] }
1919
php-7.3: { image: 'php:7.3', volumes: ['.:/app'] }
20+
php-7.4: { image: 'php:7.4', volumes: ['.:/app'] }

src/Processor/Processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private function processHandler(ParsedShortcodeInterface $parsed, ProcessorConte
140140

141141
$state = $parsed->getText();
142142
$length = mb_strlen($processed->getTextContent(), 'utf-8');
143-
$offset = mb_strrpos($state, $processed->getTextContent(), 'utf-8');
143+
$offset = mb_strrpos($state, $processed->getTextContent(), 0, 'utf-8');
144144

145145
return mb_substr($state, 0, $offset, 'utf-8').$processed->getContent().mb_substr($state, $offset + $length, mb_strlen($state, 'utf-8'), 'utf-8');
146146
}

0 commit comments

Comments
 (0)