Commit Graph

119 Commits

Author SHA1 Message Date
Sebastian Meyer 7311da4b22 Add error handler for exceptions 2024-01-24 22:44:31 +01:00
Sebastian Meyer 3f633ef11e Update PHPCS workflow 2024-01-24 09:58:26 +01:00
Sebastian Meyer a4eb7bc4ea Add PHPCS GitHub workflow 2024-01-24 09:55:12 +01:00
Sebastian Meyer be3b5f1141 Add phpDocumentor tooling 2024-01-23 17:59:30 +01:00
Sebastian Meyer ca19810a56 Update PHPDocs 2024-01-23 17:58:33 +01:00
Sebastian Meyer 9832946b35 Add PHP_CodeSniffer tooling 2024-01-23 17:56:19 +01:00
Sebastian Meyer f832b58a3e Make StrictList compatible with SplDoublyLinkedList 2024-01-22 21:03:54 +01:00
Sebastian Meyer 1eb426de38 Declare interfaces for traits 2024-01-22 18:45:51 +01:00
Sebastian Meyer b20a8df00c Add exception handling to Singleton trait 2024-01-03 15:27:36 +01:00
Sebastian Meyer 6ba215e3fc Update dependencies 2024-01-01 10:20:19 +01:00
Sebastian Meyer a0315b8196 Update PHPDoc for Singleton trait 2023-12-20 13:48:35 +01:00
Sebastian Meyer ba2ec7a516 Use documented variable names in signature 2023-12-19 16:02:05 +01:00
Sebastian Meyer 2314e685a3 Convert error handler function to callable 2023-12-16 21:15:47 +01:00
Sebastian Meyer c7a615143e Add PHPDoc for magically readable properties 2023-11-21 23:40:24 +01:00
Sebastian Meyer f27b88d01f Update .gitignore 2023-11-21 23:14:56 +01:00
Sebastian Meyer 69982816bf Rename template TValue 2023-11-21 22:42:55 +01:00
Sebastian Meyer 983bfc7789
Update phpstan.yml
Signed-off-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
2023-11-21 22:22:15 +01:00
Sebastian Meyer 650186635c
Update phpmd.yml
Signed-off-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
2023-11-21 22:22:02 +01:00
Sebastian Meyer f7a40f9b4a Add badges for workflows 2023-11-21 22:17:39 +01:00
Sebastian Meyer 0267c99d92 Merge branch 'main' of https://github.com/opencultureconsulting/php-basics 2023-11-21 22:07:41 +01:00
Sebastian Meyer 4d77176b2a
Add PHPMD GitHub workflow
Signed-off-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
2023-11-21 21:59:06 +01:00
Sebastian Meyer 9fd7fdaec9 Remove redundant public method 2023-11-21 18:04:25 +01:00
Sebastian Meyer 38e1ff72b3 Revert "Remove PHPMD workflow"
This reverts commit 38d566b9dc.
2023-11-21 17:59:45 +01:00
Sebastian Meyer 38d566b9dc Remove PHPMD workflow 2023-11-21 17:58:40 +01:00
Sebastian Meyer e4783a72a5
Add PHPMD GitHub workflow
Signed-off-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
2023-11-21 17:49:50 +01:00
Sebastian Meyer 00988c7cee Fix Dependabot configuration file 2023-11-21 17:39:12 +01:00
Sebastian Meyer 70c28b5d02
Add Dependabot GitHub workflow
Signed-off-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
2023-11-21 17:37:55 +01:00
Sebastian Meyer f70f4f78e2 Add PHPStan GitHub workflow 2023-11-21 17:19:58 +01:00
Sebastian Meyer 47b23373b7 Use newest version of PHP-CS-Fixer 2023-11-19 21:12:41 +01:00
Sebastian Meyer da33bce753 Raise PHPStan level to 9 2023-11-19 20:53:44 +01:00
Sebastian Meyer a53e3303a0 Add PHPStan with strict rules 2023-11-19 16:01:58 +01:00
Sebastian Meyer 6730748032 Run PHP-CS-Fixer 2023-11-19 15:56:42 +01:00
Sebastian Meyer 044603465e Set default error code to E_USER_ERROR 2023-11-19 13:52:22 +01:00
Sebastian Meyer afd6ec6e92 Add alias methods to StrictQueue and StrictStack 2023-11-19 10:52:11 +01:00
Sebastian Meyer e198aca844 Fix namespaces in phpDocs 2023-11-18 22:22:27 +01:00
Sebastian Meyer a65299546c Use sprintf() for error messages 2023-11-18 18:50:14 +01:00
Sebastian Meyer 7456e56266 Make namespaces more consistent 2023-11-18 18:13:51 +01:00
Sebastian Meyer 9f2f58556a Fix PSR-12 code styling 2023-11-18 17:37:22 +01:00
Sebastian Meyer 5f45256d23 Consolidate documentation 2023-11-18 16:53:42 +01:00
Sebastian Meyer 9266905a2b Consolidate namespaces 2023-11-15 14:43:11 +01:00
Sebastian Meyer b39a482136 Add generic interface implementations 2023-11-15 12:01:40 +01:00
Sebastian Meyer 4b02d4f0e6 Improve phpDoc documentation 2023-11-15 12:01:21 +01:00
Sebastian Meyer bd4b72168f Make setIteratorMode final for stacks and queues 2023-11-13 15:18:16 +01:00
Sebastian Meyer 39d6cd31e6 Rename errorhandler 2023-11-12 15:56:57 +01:00
Sebastian Meyer a970ffaf9c Update composer.json 2023-11-12 15:54:00 +01:00
Sebastian Meyer 4b7ee9b876 Add error handler to convert to exceptions 2023-11-12 15:50:19 +01:00
Sebastian Meyer a84046755e Reimplement data structures based on SPL 2023-11-12 15:34:08 +01:00
Sebastian Meyer dc4209e40f Throw exception when cloning singleton 2023-11-12 15:27:56 +01:00
Sebastian Meyer ac57fcfd32 Use late static binding in traits 2023-11-11 20:06:53 +01:00
Sebastian Meyer 3f5bcbf26b Update singleton trait 2023-11-11 09:34:02 +01:00