/home/aibagrif/my.aibagrifoods.com/application/autoload/ORM.php
* list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
class ORM implements ArrayAccess {
// ----------------------- //
// --- CLASS CONSTANTS --- //
// ----------------------- //
// WHERE and HAVING condition array keys
const CONDITION_FRAGMENT = 0;
const CONDITION_VALUES = 1;
const DEFAULT_CONNECTION = 'default';
// Limit clause style
const LIMIT_STYLE_TOP_N = "top";
const LIMIT_STYLE_LIMIT = "limit";
// ------------------------ //
// --- CLASS PROPERTIES --- //
// ------------------------ //
// Class configuration
Arguments
"""
During inheritance of ArrayAccess: Uncaught Whoops\Exception\ErrorException: Return type of ORM::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/aibagrif/my.aibagrifoods.com/application/autoload/ORM.php:2132\n
Stack trace:\n
#0 /home/aibagrif/my.aibagrifoods.com/application/autoload/ORM.php(41): Whoops\Run->handleError(8192, 'Return type of ...', '/home/aibagrif/...', 2132)\n
#1 /home/aibagrif/my.aibagrifoods.com/vendor/composer/ClassLoader.php(571): include('/home/aibagrif/...')\n
#2 /home/aibagrif/my.aibagrifoods.com/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/home/aibagrif/...')\n
#3 /home/aibagrif/my.aibagrifoods.com/application/helpers/ibilling_bootstrap.php(75): Composer\Autoload\ClassLoader->loadClass('ORM')\n
#4 /home/aibagrif/my.aibagrifoods.com/application/app.php(7): require('/home/aibagrif/...')\n
#5 /home/aibagrif/my.aibagrifoods.com/index.php(3): require('/home/aibagrif/...')\n
#6 {main}
"""
/home/aibagrif/my.aibagrifoods.com/vendor/filp/whoops/src/Whoops/Run.php
}
/**
* Special case to deal with Fatal errors and the like.
*
* @return void
*/
public function handleShutdown()
{
// If we reached this step, we are in shutdown handler.
// An exception thrown in a shutdown handler will not be propagated
// to the exception handler. Pass that information along.
$this->canThrowExceptions = false;
$error = $this->system->getLastError();
if ($error && Misc::isLevelFatal($error['type'])) {
// If there was a fatal error,
// it was not handled in handleError yet.
$this->allowQuit = false;
$this->handleError(
$error['type'],
$error['message'],
$error['file'],
$error['line']
);
}
}
/**
* @param Throwable $exception
*
* @return Inspector
*/
private function getInspector($exception)
{
return new Inspector($exception);
}
/**
* Resolves the giving handler.
Arguments
1
"""
During inheritance of ArrayAccess: Uncaught Whoops\Exception\ErrorException: Return type of ORM::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/aibagrif/my.aibagrifoods.com/application/autoload/ORM.php:2132\n
Stack trace:\n
#0 /home/aibagrif/my.aibagrifoods.com/application/autoload/ORM.php(41): Whoops\Run->handleError(8192, 'Return type of ...', '/home/aibagrif/...', 2132)\n
#1 /home/aibagrif/my.aibagrifoods.com/vendor/composer/ClassLoader.php(571): include('/home/aibagrif/...')\n
#2 /home/aibagrif/my.aibagrifoods.com/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/home/aibagrif/...')\n
#3 /home/aibagrif/my.aibagrifoods.com/application/helpers/ibilling_bootstrap.php(75): Composer\Autoload\ClassLoader->loadClass('ORM')\n
#4 /home/aibagrif/my.aibagrifoods.com/application/app.php(7): require('/home/aibagrif/...')\n
#5 /home/aibagrif/my.aibagrifoods.com/index.php(3): require('/home/aibagrif/...')\n
#6 {main}
"""
"/home/aibagrif/my.aibagrifoods.com/application/autoload/ORM.php"
41