diff --git a/.phpdoc/guide/changelog.rst b/.phpdoc/guide/changelog.rst index f1e4cc9..5025e9a 100644 --- a/.phpdoc/guide/changelog.rst +++ b/.phpdoc/guide/changelog.rst @@ -6,6 +6,13 @@ Changelog .. sidebar:: Table of Contents .. contents:: +v2.1.2 +====== + +**New Features:** + +* Added Composer commands for development tools (PHP Mess Detector, Psalm Taint Analysis) + v2.1.1 ====== diff --git a/.phpdoc/template/index.html.twig b/.phpdoc/template/index.html.twig index 01d4ee9..5b6a32a 100644 --- a/.phpdoc/template/index.html.twig +++ b/.phpdoc/template/index.html.twig @@ -14,9 +14,11 @@ data structures, error and exception handlers, multiple traits implementing standard interfaces, and more generic traits for common use cases. They share the same design principles - like property and method naming schema, highest coding standards of PHPStan - and Psalm, and full PSR-12 - compliance to make sure they can be combined and easily re-used in other projects.
+ like property and method naming schema, highest coding standards of PHPStan, + Psalm, PHP Mess Detector, + PHP_CodeSniffer, and full + PSR-12 compliance to make sure they can be combined and easily + re-used in other projects.A type-sensitive, traversable array.
@@ -698,9 +698,9 @@Peek at the first item of the array.
@@ -799,9 +799,9 @@Count the data items.
@@ -845,9 +845,9 @@Return the current item.
@@ -1238,9 +1238,9 @@Return the current key.
@@ -1284,9 +1284,9 @@Move forward to next item.
@@ -1322,9 +1322,9 @@Check if the specified offset exists.
@@ -1380,9 +1380,9 @@Retrieve data at the specified offset.
@@ -1524,9 +1524,9 @@Unset the specified offset.
@@ -1574,9 +1574,9 @@Pop the item from the end of the array.
@@ -1637,9 +1637,9 @@Move back to previous item.
@@ -1675,9 +1675,9 @@Push an item at the end of the array.
@@ -1809,9 +1809,9 @@Rewind the iterator to the first item.
@@ -2034,9 +2034,9 @@Shift the item from the beginning of the array.
@@ -2143,9 +2143,9 @@Peek at the last item of the array.
@@ -2325,9 +2325,9 @@Prepend the array with an item.
@@ -2392,9 +2392,9 @@Check if current position is valid.
diff --git a/doc/classes/OCC-Basics-DataStructures-StrictCollection.html b/doc/classes/OCC-Basics-DataStructures-StrictCollection.html index b88b726..bf63854 100644 --- a/doc/classes/OCC-Basics-DataStructures-StrictCollection.html +++ b/doc/classes/OCC-Basics-DataStructures-StrictCollection.html @@ -649,9 +649,9 @@Count the data items.
@@ -1042,9 +1042,9 @@Check if the specified offset exists.
@@ -1100,9 +1100,9 @@Retrieve data at the specified offset.
@@ -1244,9 +1244,9 @@Unset the specified offset.
diff --git a/doc/classes/OCC-Basics-DataStructures-StrictList.html b/doc/classes/OCC-Basics-DataStructures-StrictList.html index 76bb734..ef6a004 100644 --- a/doc/classes/OCC-Basics-DataStructures-StrictList.html +++ b/doc/classes/OCC-Basics-DataStructures-StrictList.html @@ -395,9 +395,9 @@Create a type-sensitive, traversable list of items.
@@ -477,9 +477,9 @@Add/insert a new item at the specified offset.
@@ -563,9 +563,9 @@Append items at the end of the list.
@@ -630,9 +630,9 @@Clear the list of any items.
@@ -668,9 +668,9 @@Get the item at the specified index.
@@ -743,9 +743,9 @@Check if this can be considered a list.
@@ -789,9 +789,9 @@Set the item at the specified offset.
@@ -875,9 +875,9 @@Prepend items at the start of the list.
@@ -942,9 +942,9 @@Push an item at the end of the list.
@@ -1009,9 +1009,9 @@Remove an item from the list.
@@ -1076,9 +1076,9 @@Set an item at the specified index.
@@ -1152,9 +1152,9 @@Return array representation of list.
@@ -1198,9 +1198,9 @@Turn list into a type-sensitive collection.
@@ -1244,9 +1244,9 @@Prepend the list with an item.
diff --git a/doc/classes/OCC-Basics-DataStructures-StrictQueue.html b/doc/classes/OCC-Basics-DataStructures-StrictQueue.html index ad4a58a..db8ad46 100644 --- a/doc/classes/OCC-Basics-DataStructures-StrictQueue.html +++ b/doc/classes/OCC-Basics-DataStructures-StrictQueue.html @@ -409,9 +409,9 @@Create a type-sensitive, traversable list of items.
@@ -491,9 +491,9 @@Add/insert a new item at the specified offset.
@@ -577,9 +577,9 @@Append items at the end of the list.
@@ -644,9 +644,9 @@Clear the list of any items.
@@ -812,9 +812,9 @@Get the item at the specified index.
@@ -887,9 +887,9 @@Check if this can be considered a list.
@@ -933,9 +933,9 @@Set the item at the specified offset.
@@ -1019,9 +1019,9 @@Prepend items at the start of the list.
@@ -1086,9 +1086,9 @@Push an item at the end of the list.
@@ -1153,9 +1153,9 @@Remove an item from the list.
@@ -1220,9 +1220,9 @@Set an item at the specified index.
@@ -1296,9 +1296,9 @@Return array representation of list.
@@ -1342,9 +1342,9 @@Turn list into a type-sensitive collection.
@@ -1388,9 +1388,9 @@Prepend the list with an item.
diff --git a/doc/classes/OCC-Basics-DataStructures-StrictStack.html b/doc/classes/OCC-Basics-DataStructures-StrictStack.html index 41a2cc1..4ea7cf7 100644 --- a/doc/classes/OCC-Basics-DataStructures-StrictStack.html +++ b/doc/classes/OCC-Basics-DataStructures-StrictStack.html @@ -409,9 +409,9 @@Create a type-sensitive, traversable list of items.
@@ -491,9 +491,9 @@Add/insert a new item at the specified offset.
@@ -577,9 +577,9 @@Append items at the end of the list.
@@ -644,9 +644,9 @@Clear the list of any items.
@@ -682,9 +682,9 @@Get the item at the specified index.
@@ -757,9 +757,9 @@Check if this can be considered a list.
@@ -803,9 +803,9 @@Set the item at the specified offset.
@@ -889,9 +889,9 @@Prepend items at the start of the list.
@@ -956,9 +956,9 @@Push an item at the end of the list.
@@ -1023,9 +1023,9 @@Remove an item from the list.
@@ -1090,9 +1090,9 @@Set an item at the specified index.
@@ -1233,9 +1233,9 @@Return array representation of list.
@@ -1279,9 +1279,9 @@Turn list into a type-sensitive collection.
@@ -1325,9 +1325,9 @@Prepend the list with an item.
diff --git a/doc/classes/OCC-Basics-DataStructures-Traits-StrictSplDoublyLinkedListTrait.html b/doc/classes/OCC-Basics-DataStructures-Traits-StrictSplDoublyLinkedListTrait.html index b9afa85..7f5726d 100644 --- a/doc/classes/OCC-Basics-DataStructures-Traits-StrictSplDoublyLinkedListTrait.html +++ b/doc/classes/OCC-Basics-DataStructures-Traits-StrictSplDoublyLinkedListTrait.html @@ -183,9 +183,9 @@The common interface of all type-sensitive, SPL-based datastructures.
@@ -226,7 +226,7 @@SplDoublyLinkedList
+\SplDoublyLinkedList
Create a type-sensitive, traversable list of items.
@@ -466,9 +466,9 @@Add/insert a new item at the specified offset.
@@ -552,9 +552,9 @@Append items at the end of the list.
@@ -619,9 +619,9 @@Clear the list of any items.
@@ -657,9 +657,9 @@Get the item at the specified index.
@@ -732,9 +732,9 @@Check if this can be considered a list.
@@ -778,9 +778,9 @@Set the item at the specified offset.
@@ -864,9 +864,9 @@Prepend items at the start of the list.
@@ -931,9 +931,9 @@Push an item at the end of the list.
@@ -998,9 +998,9 @@Remove an item from the list.
@@ -1065,9 +1065,9 @@Set an item at the specified index.
@@ -1141,9 +1141,9 @@Return array representation of list.
@@ -1187,9 +1187,9 @@Turn list into a type-sensitive collection.
@@ -1233,9 +1233,9 @@Prepend the list with an item.
diff --git a/doc/classes/OCC-Basics-ErrorHandlers-ThrowErrorException.html b/doc/classes/OCC-Basics-ErrorHandlers-ThrowErrorException.html index 2ff480e..241f123 100644 --- a/doc/classes/OCC-Basics-ErrorHandlers-ThrowErrorException.html +++ b/doc/classes/OCC-Basics-ErrorHandlers-ThrowErrorException.html @@ -198,9 +198,9 @@Throws internal errors as exceptions.
@@ -291,9 +291,9 @@Convert an internal PHP error into an ErrorException.
diff --git a/doc/classes/OCC-Basics-ErrorHandlers-TriggerExceptionError.html b/doc/classes/OCC-Basics-ErrorHandlers-TriggerExceptionError.html index b8ad1b3..c5ddbb2 100644 --- a/doc/classes/OCC-Basics-ErrorHandlers-TriggerExceptionError.html +++ b/doc/classes/OCC-Basics-ErrorHandlers-TriggerExceptionError.html @@ -198,9 +198,9 @@Triggers errors for uncaught exceptions.
@@ -291,9 +291,9 @@Convert an uncaught exception into an PHP error.
diff --git a/doc/classes/OCC-Basics-Interfaces-ArrayAccessTrait.html b/doc/classes/OCC-Basics-Interfaces-ArrayAccessTrait.html index 86328d4..83cc9db 100644 --- a/doc/classes/OCC-Basics-Interfaces-ArrayAccessTrait.html +++ b/doc/classes/OCC-Basics-Interfaces-ArrayAccessTrait.html @@ -182,9 +182,9 @@A generic implementation of the ArrayAccess interface.
@@ -302,9 +302,9 @@Check if the specified offset exists.
@@ -360,9 +360,9 @@Retrieve data at the specified offset.
@@ -418,9 +418,9 @@Assign a value to the specified offset.
@@ -477,9 +477,9 @@Unset the specified offset.
diff --git a/doc/classes/OCC-Basics-Interfaces-CountableTrait.html b/doc/classes/OCC-Basics-Interfaces-CountableTrait.html index 213bef8..a4f9272 100644 --- a/doc/classes/OCC-Basics-Interfaces-CountableTrait.html +++ b/doc/classes/OCC-Basics-Interfaces-CountableTrait.html @@ -182,9 +182,9 @@A generic implementation of the Countable interface.
@@ -281,9 +281,9 @@Count the data items.
diff --git a/doc/classes/OCC-Basics-Interfaces-IteratorAggregateTrait.html b/doc/classes/OCC-Basics-Interfaces-IteratorAggregateTrait.html index df9fed6..f2e5d6e 100644 --- a/doc/classes/OCC-Basics-Interfaces-IteratorAggregateTrait.html +++ b/doc/classes/OCC-Basics-Interfaces-IteratorAggregateTrait.html @@ -182,9 +182,9 @@A generic implementation of the IteratorAggregate interface.
@@ -281,9 +281,9 @@Retrieve an external iterator.
diff --git a/doc/classes/OCC-Basics-Interfaces-IteratorTrait.html b/doc/classes/OCC-Basics-Interfaces-IteratorTrait.html index 22869eb..99ab35d 100644 --- a/doc/classes/OCC-Basics-Interfaces-IteratorTrait.html +++ b/doc/classes/OCC-Basics-Interfaces-IteratorTrait.html @@ -182,9 +182,9 @@A generic implementation of the Iterator interface.
@@ -316,9 +316,9 @@Return the current item.
@@ -362,9 +362,9 @@Return the current key.
@@ -408,9 +408,9 @@Move forward to next item.
@@ -446,9 +446,9 @@Move back to previous item.
@@ -484,9 +484,9 @@Rewind the iterator to the first item.
@@ -522,9 +522,9 @@Check if current position is valid.
diff --git a/doc/files/src/DataStructures/StrictArray.php.txt b/doc/files/src/DataStructures/StrictArray.php.txt index 7a05194..65f555e 100644 --- a/doc/files/src/DataStructures/StrictArray.php.txt +++ b/doc/files/src/DataStructures/StrictArray.php.txt @@ -28,6 +28,17 @@ use OCC\Basics\DataStructures\Exceptions\InvalidDataTypeException; use OCC\Basics\Interfaces\IteratorTrait; use RuntimeException; +use function array_key_first; +use function array_key_last; +use function array_pop; +use function array_push; +use function array_shift; +use function array_unshift; +use function count; +use function get_debug_type; +use function is_null; +use function sprintf; + /** * A type-sensitive, traversable array. * diff --git a/doc/files/src/DataStructures/StrictCollection.php.txt b/doc/files/src/DataStructures/StrictCollection.php.txt index 78f6883..abcfe6f 100644 --- a/doc/files/src/DataStructures/StrictCollection.php.txt +++ b/doc/files/src/DataStructures/StrictCollection.php.txt @@ -362,8 +362,6 @@ class StrictCollection implements ArrayAccess, Countable, Serializable * @return void * * @internal - * - * @hpsalm-suppress MethodSignatureMismatch */ public function __unserialize(array $data): void { diff --git a/doc/files/src/DataStructures/Traits/StrictSplDoublyLinkedListTrait.php.txt b/doc/files/src/DataStructures/Traits/StrictSplDoublyLinkedListTrait.php.txt index 73f34d1..57209fa 100644 --- a/doc/files/src/DataStructures/Traits/StrictSplDoublyLinkedListTrait.php.txt +++ b/doc/files/src/DataStructures/Traits/StrictSplDoublyLinkedListTrait.php.txt @@ -28,7 +28,6 @@ use OCC\Basics\DataStructures\Exceptions\InvalidDataTypeException; use OCC\Basics\DataStructures\StrictCollection; use OCC\Basics\Traits\TypeChecker; use OutOfRangeException; -use SplDoublyLinkedList; use function get_debug_type; use function iterator_to_array; @@ -47,7 +46,7 @@ use function unserialize; * @package Basics\DataStructures * * @template AllowedType of mixed - * @phpstan-require-extends SplDoublyLinkedList + * @phpstan-require-extends \SplDoublyLinkedList */ trait StrictSplDoublyLinkedListTrait { diff --git a/doc/files/src/ErrorHandlers/ThrowErrorException.php.txt b/doc/files/src/ErrorHandlers/ThrowErrorException.php.txt index 695ce23..271b77b 100644 --- a/doc/files/src/ErrorHandlers/ThrowErrorException.php.txt +++ b/doc/files/src/ErrorHandlers/ThrowErrorException.php.txt @@ -35,8 +35,6 @@ use function error_reporting; * * > Usage: `set_error_handler(new ThrowErrorException());` * - * @api - * * @author Sebastian MeyerNew Features: +
+ + + +Initial Release
-set_exception_handler(new TriggerExceptionError());
- string
.
- All available versions as well as further information about Requirements and dependencies can be found on Packagist.
-Be aware that you also need to make the classes and traits available in your application by either adding them to your autoloader or by including all files individually in PHP.
-As a last resort you can also just download the files. You can find all available versions as well as the current development state on the GitHub release page.
-This package does not have any external dependencies.
-