Explicitly declare used functions

This commit is contained in:
Sebastian Meyer 2024-02-16 16:16:05 +01:00
parent 6270834398
commit 45c1716876
12 changed files with 91 additions and 0 deletions

View File

@ -32,6 +32,34 @@ use OCC\Basics\Interfaces\CountableTrait;
use OCC\Basics\Traits\Getter; use OCC\Basics\Traits\Getter;
use Serializable; use Serializable;
use function array_is_list;
use function array_map;
use function array_sum;
use function count;
use function function_exists;
use function get_debug_type;
use function is_a;
use function is_array;
use function is_bool;
use function is_callable;
use function is_countable;
use function is_double;
use function is_float;
use function is_int;
use function is_integer;
use function is_iterable;
use function is_long;
use function is_null;
use function is_numeric;
use function is_resource;
use function is_scalar;
use function is_string;
use function is_object;
use function ltrim;
use function serialize;
use function sprintf;
use function unserialize;
/** /**
* A type-sensitive, unsorted collection. * A type-sensitive, unsorted collection.
* *

View File

@ -34,6 +34,36 @@ use SplDoublyLinkedList;
use OCC\Basics\Traits\Getter; use OCC\Basics\Traits\Getter;
use Serializable; use Serializable;
use function array_map;
use function array_sum;
use function count;
use function function_exists;
use function get_debug_type;
use function in_array;
use function is_a;
use function is_array;
use function is_bool;
use function is_callable;
use function is_countable;
use function is_double;
use function is_float;
use function is_int;
use function is_integer;
use function is_iterable;
use function is_long;
use function is_null;
use function is_numeric;
use function is_resource;
use function is_scalar;
use function is_string;
use function is_object;
use function iterator_to_array;
use function ltrim;
use function range;
use function serialize;
use function sprintf;
use function unserialize;
/** /**
* A type-sensitive, taversable list. * A type-sensitive, taversable list.
* *

View File

@ -31,6 +31,8 @@ use RangeException;
use RuntimeException; use RuntimeException;
use Serializable; use Serializable;
use function sprintf;
/** /**
* A type-sensitive, taversable queue (FIFO). * A type-sensitive, taversable queue (FIFO).
* *

View File

@ -31,6 +31,8 @@ use RangeException;
use RuntimeException; use RuntimeException;
use Serializable; use Serializable;
use function sprintf;
/** /**
* A type-sensitive, taversable stack (LIFO). * A type-sensitive, taversable stack (LIFO).
* *

View File

@ -25,6 +25,8 @@ namespace OCC\Basics\ErrorHandlers;
use ErrorException; use ErrorException;
use function error_reporting;
/** /**
* Throws internal errors as exceptions. * Throws internal errors as exceptions.
* *

View File

@ -25,6 +25,9 @@ namespace OCC\Basics\ErrorHandlers;
use Throwable; use Throwable;
use function sprintf;
use function trigger_error;
/** /**
* Triggers errors for uncaught exceptions. * Triggers errors for uncaught exceptions.
* *

View File

@ -25,6 +25,8 @@ namespace OCC\Basics\Interfaces;
use ArrayAccess; use ArrayAccess;
use function is_null;
/** /**
* A generic implementation of the ArrayAccess interface. * A generic implementation of the ArrayAccess interface.
* *

View File

@ -25,6 +25,8 @@ namespace OCC\Basics\Interfaces;
use Countable; use Countable;
use function count;
/** /**
* A generic implementation of the Countable interface. * A generic implementation of the Countable interface.
* *

View File

@ -25,6 +25,13 @@ namespace OCC\Basics\Interfaces;
use Iterator; use Iterator;
use function current;
use function is_null;
use function key;
use function next;
use function prev;
use function reset;
/** /**
* A generic implementation of the Iterator interface. * A generic implementation of the Iterator interface.
* *

View File

@ -25,6 +25,12 @@ namespace OCC\Basics\Traits;
use InvalidArgumentException; use InvalidArgumentException;
use function boolval;
use function method_exists;
use function property_exists;
use function sprintf;
use function ucfirst;
/** /**
* Reads data from inaccessible properties by using magic methods. * Reads data from inaccessible properties by using magic methods.
* *

View File

@ -23,6 +23,8 @@ declare(strict_types=1);
namespace OCC\Basics\Traits; namespace OCC\Basics\Traits;
use function boolval;
/** /**
* Overloads a class with readable magic properties. * Overloads a class with readable magic properties.
* *

View File

@ -25,6 +25,11 @@ namespace OCC\Basics\Traits;
use InvalidArgumentException; use InvalidArgumentException;
use function method_exists;
use function property_exists;
use function sprintf;
use function ucfirst;
/** /**
* Writes data to inaccessible properties by using magic methods. * Writes data to inaccessible properties by using magic methods.
* *