robot-loader
robot-loader copied to clipboard
RobotAutoloader not load a interface
Version: Last
I see this error - https://github.com/stripe/stripe-php/issues/1601 in my stripe api. I write there and i write here :) The error is because autoloader not load a exception interface. I open the cache and i see only one interface:
'Stripe\\Exception\\OAuth\\ExceptionInterface' =>
array (
0 => 'C:\\xampp2\\htdocs\\ext\\pok4\\shop\\stripe\\lib\\Exception\\OAuth\\ExceptionInterface.php',
1 => 1696003164,
),
in the bottom of the cache i see this:
'C:\\xampp2\\htdocs\\ext\\pok4\\shop\\stripe\\lib\\Exception\\ExceptionInterface.php' => 1696003164,
maybe this is the problem - this is not load in the above clasess...
The content of this file is
<?php
namespace Stripe\Exception;
// TODO: remove this check once we drop support for PHP 5
if (\interface_exists(\Throwable::class, false)) {
/**
* The base interface for all Stripe exceptions.
*/
interface ExceptionInterface extends \Throwable
{
}
} else {
/**
* The base interface for all Stripe exceptions.
*/
// phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses
interface ExceptionInterface
{
}
// phpcs:enable
}
Do you have any ideas how to load this in robotautoloader ?