Skip to content

Commit 9ed7f42

Browse files
LuborRodRodion Liuborets
andauthored
Fix PHP version in doc-scan example compose.json to 8.0 (#236)
* Fix PHP version in doc-scan example compose.json to 8.0 * php version fixes Co-authored-by: Rodion Liuborets <[email protected]>
1 parent e164082 commit 9ed7f42

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/doc-scan/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Yoti SDK Profile Demo",
44
"license": "MIT",
55
"require": {
6-
"php": "^7.2.5",
6+
"php": "^8.0",
77
"fideloper/proxy": "^4.2",
88
"fruitcake/laravel-cors": "^1.0",
99
"guzzlehttp/guzzle": "^6.3",

examples/docker/php.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM php:7-fpm-alpine
1+
FROM php:8-fpm-alpine
22

33
COPY php.ini /usr/local/etc/php/conf.d/php.ini

src/Profile/Util/Attribute/AttributeListConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static function convertToYotiAttributesList(
2828

2929
foreach ($attributeList->getAttributes() as $attr) { /** @var \Yoti\Protobuf\Attrpubapi\Attribute $attr */
3030
$attrName = $attr->getName();
31-
if (null == $attrName || strlen($attrName) === 0) {
31+
if (null == $attrName || strlen($attrName) == 0) {
3232
continue;
3333
}
3434
$yotiAttribute = AttributeConverter::convertToYotiAttribute($attr, $logger);

0 commit comments

Comments
 (0)