Skip to content

Commit 072facd

Browse files
fix: Fatal error including API version string in a namespaced project (#18) (#19)
Co-authored-by: Imanol Romera <37277561+superwave1999@users.noreply.github.com>
1 parent e12a233 commit 072facd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Http/MindeeApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*/
3636
const TIMEOUT_DEFAULT = 120;
3737
// phpcs:disable
38-
include_once('src/version.php');
38+
include_once(dirname(__DIR__) . '/version.php');
3939
// phpcs:enable
4040
const USER_AGENT = 'mindee-api-php@v' . VERSION . ' php-v' . PHP_VERSION . ' ' . PHP_OS;
4141

0 commit comments

Comments
 (0)