Your ROOT_URL in app.ini is https://code.exacti.com.br/ but you are visiting https://git.exacti.com.br/ExacTI/phacil-framework/src/commit/c2b9c143da0c2e4802932a31b3388bc2efdf8cc9/system/ArrayClass/CaseInsensitiveArray.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
A super easy PHP Framework for web development! https://github.com/exacti/phacil-framework

38 lines
763 B

<?php
/*
* Copyright © 2023 ExacTI Technology Solutions. All rights reserved.
* GPLv3 General License.
* https://exacti.com.br
*/
namespace Phacil\Framework\ArrayClass;
if (version_compare(phpversion(), "8.0.0", "<")) {
class supCaseComp extends \Phacil\Framework\ArrayClass\Aux\LegacyAux {
}
} else {
class supCaseComp extends \Phacil\Framework\ArrayClass\Aux\ModernAux
{
}
}
class CaseInsensitiveArray extends supCaseComp implements \ArrayAccess
{
protected $_container = array();
/**
* @param array $initial_array
* @return void
*/
public function __construct(array $initial_array = array())
{
//$this->_container = array_map("strtolower", $initial_array);
$this->_container = array_change_key_case($initial_array);
}
}