mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 21:48:41 +00:00
Php 7.1. fixes
This commit is contained in:
parent
441968f2fc
commit
67ad863a56
|
|
@ -44,7 +44,7 @@ class Autoloader
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public static function default_autoloader(string $class)
|
public static function default_autoloader(string $class) /* : void */
|
||||||
{
|
{
|
||||||
$class = ltrim($class, '\\');
|
$class = ltrim($class, '\\');
|
||||||
$class = str_replace(['_', '\\'], '/', $class);
|
$class = str_replace(['_', '\\'], '/', $class);
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ abstract class Enum
|
||||||
/**
|
/**
|
||||||
* Checking enum name.
|
* Checking enum name.
|
||||||
*
|
*
|
||||||
* Checking if a certain /* public */ const name exists (case sensitive)
|
* Checking if a certain const name exists (case sensitive)
|
||||||
*
|
*
|
||||||
* @param string $name Name of the value (case sensitive)
|
* @param string $name Name of the value (case sensitive)
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user