1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-12 08:24:05 +00:00

Commit graph

  • 81375b71c1
    support PHPStan extension-installer (#31) master v1.1.2 Hosmel Quintana 2025-06-06 17:15:09 -06:00
  • fe17705ca9 Use github-actions[bot] for phpcsfixer in CI (fix #29) Samuel Štancl 2025-06-07 01:13:33 +02:00
  • df3681965c
    General code cleanup (#28) Márk Magyar 2025-06-07 01:11:53 +02:00
  • 859fb9a03c from(int|string), tryFrom(int|string) Samuel Štancl 2025-06-07 01:03:01 +02:00
  • e11b753a53
    support PHPStan extension-installer Hosmel Quintana 2025-01-25 13:50:37 -06:00
  • 8c0c921f8e
    Merge 2911c55b84 into 6a0399823f Márk Magyar 2024-12-29 21:12:58 +01:00
  • bdd8de68ff
    Use is() for comparison in in() Mark 2024-12-29 08:56:50 +01:00
  • 06b17354af
    Add tests that satisfy the ArrayIterator branch Mark 2024-12-29 08:55:03 +01:00
  • 633f1703a0
    Fix style with php-cs-fixer Mark 2024-12-29 07:55:56 +01:00
  • d669fa14af
    Add missing types Mark 2024-12-29 07:43:50 +01:00
  • 2911c55b84
    Remove failing tests as they are not necessary anymore Mark 2024-12-29 07:43:38 +01:00
  • 25f544c451
    Use proper type for is and isNot methods Mark 2024-12-29 07:43:15 +01:00
  • aef2f724ba
    Use non-deprecated phpstan configuration value Mark 2024-12-29 07:34:05 +01:00
  • 2e5c94b4ec
    Simplify control flow Mark 2024-12-29 07:25:31 +01:00
  • 5db9997149
    Merge meta properties in one go instead of in a loop Mark 2024-12-29 07:19:51 +01:00
  • ca36e6dbe4
    Add typehint Mark 2024-12-29 07:19:16 +01:00
  • 6d6303d276
    Remove unnecessary null coalescing Mark 2024-12-29 07:19:07 +01:00
  • 050057a708
    Use iterable type instead of unnecessary checks Mark 2024-12-29 07:07:26 +01:00
  • e6f788fd9f
    Add phpunit cache directory to .gitignore Mark 2024-12-29 07:07:05 +01:00
  • 25b8f405d5
    Remove useless concatenation Mark 2024-12-29 06:55:13 +01:00
  • 5cdcc30b10
    Add .idea folder to .gitignore Mark 2024-12-29 06:54:57 +01:00
  • 6a0399823f
    Run test on PHP 8.4 L11 (#27) Viktor Szépe 2024-12-27 21:09:01 +01:00
  • ea986170f4
    Allow installing testbench v9 Viktor Szépe 2024-12-27 21:07:09 +01:00
  • e06f40a3ae
    Run test on PHP 8.4 L11 Viktor Szépe 2024-12-27 21:00:24 +01:00
  • 27d0405b98
    Fix PHP 8.4 deprecation for type declaration for default null value (#25) v1.1.1 Eric Junker 2024-10-29 10:38:32 -05:00
  • 558d859ab4 Fix PHP 8.4 deprecation for type declaration for default null value Eric Junker 2024-10-29 10:15:16 -05:00
  • 37326d5e26
    mention defaultValue() in README v1.1.0 Samuel Štancl 2024-07-15 16:28:34 +02:00
  • 5be8a58974
    feat: Add support for default values on metadata properties (#23) Owen Conti 2024-07-15 08:04:31 -06:00
  • bcdbd85d74 feat: Add support for default values on metadata properties Owen Conti 2024-07-15 07:43:49 -06:00
  • a99ee1a7e0 Merge branch 'master' of github.com:archtechx/enums v1.0.1 Samuel Štancl 2024-01-28 18:52:47 +01:00
  • 61ba79388b fix tests for PascalCase Samuel Štancl 2024-01-28 18:52:34 +01:00
  • b62251dc80 Fix code style (php-cs-fixer) PHP CS Fixer 2024-01-28 17:50:49 +00:00
  • fea911eba7 Support UPPER_SNAKE_CASE and PascalCase in stringOptions() (resolve #22) Samuel Štancl 2024-01-28 18:50:31 +01:00
  • fc428d533d update stringOptions() examples to match the enums used in the README v1.0.0 Samuel Štancl 2024-01-12 23:24:43 +01:00
  • e5259d2e4b document stringOptions() Samuel Štancl 2024-01-12 23:19:05 +01:00
  • 6684067b9e Add stringOptions() method to the Options trait (resolve #12) Samuel Štancl 2024-01-12 23:11:09 +01:00
  • f8438b0313 add generic typehint Samuel Štancl 2024-01-12 22:41:14 +01:00
  • 365b3447f5 Support defining #[Meta] on traits (resolve #9) Samuel Štancl 2024-01-12 22:35:58 +01:00
  • f0ea4c36c8
    Comparable enum (#20) Thai Nguyen Hung 2024-01-13 04:02:32 +07:00
  • f52feccd85 add comment to test Samuel Štancl 2024-01-12 22:00:38 +01:00
  • 84d56bf843 migrate pest config Samuel Štancl 2024-01-12 21:57:10 +01:00
  • ca01a71ea0 remove class name quoting in exceptions to match PHP behavior Samuel Štancl 2024-01-12 21:56:42 +01:00
  • 79a410dd01 update ci job name Samuel Štancl 2024-01-12 21:34:24 +01:00
  • 530316ee58 Merge branch 'comparable' of github.com:hungthai1401/enums into comparable Samuel Štancl 2024-01-12 21:32:32 +01:00
  • bc9054277c test more PHP versions in CI Samuel Štancl 2024-01-12 21:31:37 +01:00
  • 214e22c2ca
    Merge branch 'master' into comparable Samuel Štancl 2024-01-12 21:24:58 +01:00
  • 6f61461c50 improve Comparable logic Samuel Štancl 2024-01-12 21:23:50 +01:00
  • fb521d2dcb
    Install larastan/larastan (#21) parth gohil 2023-12-08 19:03:51 +05:30
  • bf0b382f3c Install larastan/larastan parth gohil 2023-12-08 13:51:26 +05:30
  • c0a459864b ci: globally use php-cs-fixer Thai Nguyen Hung 2023-06-08 10:35:02 +07:00
  • 8b90e21803 chore: add Comparable usage in README Thai Nguyen Hung 2023-06-08 09:57:36 +07:00
  • 46944dc5f4 ci: php-cs-fixer in repository scope Thai Nguyen Hung 2023-06-08 09:31:53 +07:00
  • 161f04b719 test: comparable enum Thai Nguyen Hung 2023-06-08 09:30:57 +07:00
  • b9f33f36a3 feat: comparable enum Thai Nguyen Hung 2023-06-08 09:30:31 +07:00
  • 922b6abdc1
    Remove L8 support (#19) lukinovec 2023-02-16 17:07:26 +01:00
  • 62aa93afed Remove L8 support lukinovec 2023-02-16 14:26:10 +01:00
  • 475f45e682
    Add L10 support (#18) v0.3.2 lukinovec 2023-02-15 14:05:41 +01:00
  • 32dfc1c66e Add L10 support lukinovec 2023-02-15 13:31:00 +01:00
  • 646944e56e
    Correct typo/error in README.md (#16) colinmackinlay 2022-11-07 23:56:34 +00:00
  • fd9d73e404
    Correct typo/error in README.md colinmackinlay 2022-11-07 23:44:05 +00:00
  • 3d76034952
    Add valueOptions() to options trait ziming 2022-09-26 14:10:50 +08:00
  • 459b4b041d
    Optimize InvokableCases to memoize results and remove case looping Dan Horrigan 2022-08-25 15:49:40 -04:00
  • 373a86a16e
    Added "Invokable Cases" PHPStan extension (#13) v0.3.1 Samuel Levy 2022-08-25 08:27:44 +10:00
  • 72103f9eaf Added "Invokable Cases" PHPStan extension testing Samuel Levy 2022-08-22 12:26:25 +10:00
  • 7e6914a52f Added "Invokable Cases" PHPStan extension Samuel Levy 2022-07-14 11:55:36 +10:00
  • 7e17b84451 Static analysis v0.3.0 Samuel Štancl 2022-03-29 20:34:54 +02:00
  • 55478c4eb7
    Metadata (#8) Samuel Štancl 2022-03-29 20:11:06 +02:00
  • 01f2843941 merge Samuel Štancl 2022-03-29 20:06:37 +02:00
  • ead6bda52f Code style Samuel Štancl 2022-03-29 20:05:47 +02:00
  • cf9926c8e3 Fix code style (php-cs-fixer) PHP CS Fixer 2022-03-29 17:50:28 +00:00
  • 7b0871db00 Metadata Samuel Štancl 2022-03-29 19:50:02 +02:00
  • cc5bba1912
    Issue #4: Added From trait (#7) Samuel Levy 2022-03-24 07:18:58 +10:00
  • e3ea43aa00
    remove import Samuel Štancl 2022-03-23 22:15:43 +01:00
  • 0fa89738b4
    Merge branch 'master' into issues/#4_fromName_tryFromName Samuel Štancl 2022-03-23 22:11:51 +01:00
  • 18379047e5
    import ValueError Samuel Štancl 2022-03-23 22:11:24 +01:00
  • 0c87357a6e
    Extend functionality to work with pure enums (#6) Samuel Levy 2022-03-24 06:42:35 +10:00
  • e98222a513 Dropped unnecessary array_pop() Samuel Levy 2022-03-15 21:52:42 +10:00
  • dea16e414c Code review changes Samuel Levy 2022-03-15 07:06:53 +10:00
  • ad1e07cf39 Code review changes Samuel Levy 2022-03-15 07:24:25 +10:00
  • a063814396 #4 Added From trait Samuel Levy 2022-03-13 16:09:32 +10:00
  • c2f0e7faf7 Extend functionality to work with pure enums Samuel Levy 2022-03-12 22:56:43 +10:00
  • adbddff041 delete interface and cs fix Anthony 2022-03-02 09:33:40 +08:00
  • da4bf0cd1d fix Anthony 2022-02-28 15:07:23 +08:00
  • f8ac4b92ba fix Anthony 2022-02-28 15:02:09 +08:00
  • c983a9f50b add enum description Anthony 2022-02-28 14:58:07 +08:00
  • 20fa78c2b1
    Update README.md Samuel Štancl 2022-02-21 21:35:46 +01:00
  • 54bedefb79
    use array_column() to get the names, values, and options (#3) Eric Junker 2022-02-21 06:32:07 -06:00
  • 10b68d7b39 use array_column() to get the names, values, and options Eric Junker 2022-02-20 20:45:55 -06:00
  • c733871aaa
    Update README.md Samuel Štancl 2022-02-21 01:44:47 +01:00
  • 9594edb630 Merge branch 'master' of github.com:archtechx/enums v0.2.0 Samuel Štancl 2022-02-20 21:59:43 +01:00
  • 1fbdbfb914 document names() options() values() Samuel Štancl 2022-02-20 21:59:36 +01:00
  • dbf07102e9 Fix code style (php-cs-fixer) PHP CS Fixer 2022-02-20 20:54:24 +00:00
  • e65131079c Merge branch 'master' of github.com:archtechx/enums Samuel Štancl 2022-02-20 21:53:51 +01:00
  • b50d001374 add names() and values() methods, resolve #1 Samuel Štancl 2022-02-20 21:53:21 +01:00
  • 17d3a21188 Fix code style (php-cs-fixer) PHP CS Fixer 2022-02-20 20:51:14 +00:00
  • e01edd128f add options() method, resolve #2 Samuel Štancl 2022-02-20 21:50:53 +01:00
  • 7c02bbaa73 remove docker call Samuel Štancl 2022-02-20 21:16:03 +01:00
  • 5293b3bb9f wip v0.1.0 Samuel Štancl 2022-02-20 21:10:21 +01:00
  • 055250b9a7 wip Samuel Štancl 2022-02-20 21:08:00 +01:00
  • e045c334bc wip Samuel Štancl 2022-02-20 21:04:01 +01:00