Fix errors with php < 8 (#924)

Related issue https://github.com/zircote/swagger-php/issues/919

Co-authored-by: tlallement <tlallement@incert.lu>
This commit is contained in:
Thomas Lallement 2021-03-25 22:07:47 +01:00 committed by GitHub
parent 8daf4cc9b6
commit 238533ba59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ if (!defined('T_NAME_QUALIFIED')) {
if (!defined('T_NAME_FULLY_QUALIFIED')) {
define('T_NAME_FULLY_QUALIFIED', -5);
}
if (!defined('T_ATTRIBUTE')) {
define('T_ATTRIBUTE', -6);
}
if (!function_exists('OpenApi\\scan')) {
/**