Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 29, 2025

Extends type checking infrastructure to validate macro method signatures and return types for the src/macros component.

Changes

  • types/Macros/Arr.php - Type assertions for 11 Arr macro methods (arrayable, array, boolean, every, float, from, hasAll, integer, string, some, sortByMany)
  • types/Macros/Collection.php - Type assertions for Collection macros (isSingle, collapseWithKeys)
  • types/Macros/LazyCollection.php - Type assertions for LazyCollection macros (isSingle, collapseWithKeys)
  • types/Macros/Str.php - Type assertions for 8 Str macro methods (createUuidsNormally, createUuidsUsing, deduplicate, inlineMarkdown, markdown, transliterate, doesntEndWith, doesntStartWith)
  • types/Macros/Stringable.php - Type assertions for 10 Stringable macro methods (deduplicate, hash, inlineMarkdown, markdown, toHtmlString, whenIsAscii, doesntEndWith, doesntStartWith)
  • types/Macros/Request.php - Type assertions for 25 Request macro methods (boolean, collect, date, enum, filled, float, integer, string, etc.)

All tests use PHPStan's assertType() for static analysis validation via the existing composer type-testing script and phpstan.types.neon.dist configuration.

Example

use Hyperf\Collection\Arr;
use function PHPStan\Testing\assertType;

// Validates that Arr::boolean() returns bool
assertType('bool', Arr::boolean(['is_active' => true], 'is_active'));

// Validates that Arr::string() returns string
assertType('string', Arr::string(['name' => 'test'], 'name'));

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI mentioned this pull request Oct 29, 2025
3 tasks
@coderabbitai
Copy link

coderabbitai bot commented Oct 29, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 29, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/f34967da2866ace090a2b447de1f357356474573
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/Seldaek/jsonlint/zipball/1748aaf847fc731cfad7725aec413ee46f0cc3a2
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/Seldaek/phar-utils/zipball/ea2f4014f163c1be4c601b9b7bd6af81ba8d701c
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/Seldaek/signal-handler/zipball/04a6112e883ad76c0ada8e4a9f7520bbfdb6bb98
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/aws/aws-sdk-php/zipball/7231e7c309d6262855289511d6ee124fafbe664f
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/awslabs/aws-crt-php/zipball/d71d9906c7bb63a28295447ba12e74723bd3730e
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/d103774cbe7e94ddee7e4870f97f727b43fe7201
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/oVm4je /usr/bin/composer install --no-dev --prefer-dist --no-progress (http block)
  • https://api.github.com/repos/clue/reactphp-ndjson/zipball/392dc165fce93b5bb5c637b67e59619223c931b0
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/ca-bundle/zipball/719026bb30813accb68271fee7e39552a58e9f65
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/class-map-generator/zipball/ba9f089655d4cdd64e762a6044f411ccdaec0076
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/composer/zipball/3e38919bc9a2c3c026f2151b5e56d04084ce8f0b
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/metadata-minifier/zipball/c549d23829536f0d0e984aaabbf02af91f443207
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/spdx-licenses/zipball/edf364cefe8c43501e21e88110aac10b284c3c9f
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/doctrine/deprecations/zipball/459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/doctrine/event-manager/zipball/b680156fa328f1dfd874fd48c7026c41570b9c6e
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/doctrine/inflector/zipball/6d6c96277ea252fc1304627204c3d5e6e15faa3b
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/doctrine/lexer/zipball/861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/elastic/elastic-transport-php/zipball/1d476af5dc0b74530d59b67d5dd96ee39768d5a4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/elastic/elasticsearch-php/zipball/1771284cb43a7b653634d418b6f5f0ec84ff8a6d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/composer-normalize/zipball/86dc9731b8320f49e9be9ad6d8e4de9b8b0e9b8b
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json-normalizer/zipball/77961faf2c651c3f05977b53c6c68e8434febf62
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json-pointer/zipball/43bef355184e9542635e35dd2705910a3df4c236
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json-printer/zipball/211d73fc7ec6daf98568ee6ed6e6d133dee8503e
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json-schema-validator/zipball/b739527a480a9e3651360ad351ea77e7e9019df2
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ergebnis/json/zipball/7b56d2b5d9e897e75b43e2e753075a0904c921b1
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ezyang/htmlpurifier/zipball/b287d2a16aceffbf6e0295559b39662612b77fcf
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/google/recaptcha/zipball/56522c261d2e8c58ba416c90f81a4cd9f2ed89b9
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/googleapis/common-protos-php/zipball/0a399e6f39576e39ae9b66d3c704ae294afab1dc
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/guzzle/uri-template/zipball/4f4bbd4e7172148801e76e3decc1e559bdee34e1
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/huangdijia/php-coding-standard/zipball/1fc5175833329c4c8860e0327d2fd06ccfae00df
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/macroable/zipball/14b0a00d3ab6c768aaa5c34222b84000bb75eb29
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/hyperf/tappable/zipball/f5c5d343c95238dcb3fe500876ceadc175e221f8
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/jmespath/jmespath.php/zipball/a2a865e05d5f420b50cc2f85bb78d565db12a6bc
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/jsonrainbow/json-schema/zipball/68ba7677532803cc0c5900dd5a4d730537f2b2f3
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/localheinz/diff/zipball/33bd840935970cda6691c23fc7d94ae764c0734c
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/marc-mabe/php-enum/zipball/bb426fcdd65c60fb3638ef741e8782508fda7eef
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/opentelemetry-php/api/zipball/610b79ad9d6d97e8368bcb6c4d42394fbb87b522
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/opentelemetry-php/context/zipball/d4c4470b541ce72000d18c339cfee633e4c8e0cf
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/paragonie/constant_time_encoding/zipball/d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/pestphp/pest-plugin/zipball/e05d2859e08c2567ee38ce8b005d044e72648c0b
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-amqplib/php-amqplib/zipball/9f50fe69a9f1a19e2cb25596a354d705de36fe59
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/http-message-util/zipball/9d94dc0154230ac39e5bf89398b324a86f63f765
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/oVm4je /usr/bin/composer install --no-dev --prefer-dist --no-progress (http block)
  • https://api.github.com/repos/php-http/httplug/zipball/5cad731844891a4c282f3f3e1b582c46839d22f4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/php-http/promise/zipball/fc85b1fba37c169a69a07ef0d5a8075770cc1f83
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/phpseclib/phpseclib/zipball/9d6ca36a6c2dd434765b1071b2644a1c683b385d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/57d440fc54a00fda5b8781e8d9bf0140ea6d8e52
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/cache/zipball/d47c472b64aa5608225f47965a484b75c7817d5b
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/child-process/zipball/1721e2b93d89b745664353b9cfc8f155ba8a6159
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/dns/zipball/eb8ae001b5a455665c89c1df97f6fb682f8fb0f5
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/promise/zipball/23444f53a813a3296c1368bb104793ce8d88f04a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/reactphp/socket/zipball/23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/exporter/zipball/0735b90f4da94969541dac1da743446e276defa6
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/global-state/zipball/987bafff24ecc4c9ac418cab1145b96dd6e9cbd9
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/47e34210757a2f37a97dcd207d032e1b01e64c7a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/event-dispatcher/zipball/b7dc69e71de420ac04bc9ab830cf3ffebba48191
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/finder/zipball/9f696d2f1e340484b4683f7853b273abff94421f
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/oVm4je /usr/bin/composer install --no-dev --prefer-dist --no-progress (http block)
  • https://api.github.com/repos/symfony/options-resolver/zipball/0ff2f5c3df08a395232bbc3c2eb7e84912df911d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/oVm4je /usr/bin/composer install --no-dev --prefer-dist --no-progress (http block)
  • https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/oVm4je /usr/bin/composer install --no-dev --prefer-dist --no-progress (http block)
  • https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/oVm4je /usr/bin/composer install --no-dev --prefer-dist --no-progress (http block)
  • https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/oVm4je /usr/bin/composer install --no-dev --prefer-dist --no-progress (http block)
  • https://api.github.com/repos/symfony/polyfill-php82/zipball/5d2ed36f7734637dacc025f179698031951b1692
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/symfony/process/zipball/f24f8f316367b30810810d4eb30c543d7003ff3b
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/oVm4je /usr/bin/composer install --no-dev --prefer-dist --no-progress (http block)
  • https://api.github.com/repos/symfony/stopwatch/zipball/5a49289e2b308214c8b9c2fda4ea454d8b8ad7cd
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/vinkla/hashids/zipball/197171016b77ddf14e259e186559152eb3f8cf33
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/t9qvWc /usr/bin/composer install --no-interaction (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Add PHPStan type checking configuration and scripts feat: add PHPStan type assertion tests for macros component Oct 29, 2025
Copilot AI requested a review from huangdijia October 29, 2025 05:19
@huangdijia huangdijia marked this pull request as ready for review October 29, 2025 05:25
@huangdijia huangdijia merged commit 4ee356d into feat/add-phpstan-type-checking Oct 29, 2025
1 check passed
@huangdijia huangdijia deleted the copilot/sub-pr-970-again branch October 29, 2025 05:25
huangdijia added a commit that referenced this pull request Oct 29, 2025
* feat: add PHPStan type checking configuration and composer script

Add PHPStan configuration for type assertion testing and a new composer script for running type checks. This includes:
- New phpstan.types.neon.dist configuration file for type checking
- New types/ directory with helper function type assertions
- New composer script 'check:types' for running type analysis

This enhancement allows developers to validate type assertions for helper functions and ensure type safety across the codebase.

* Add comprehensive PHPStan type tests for all helper functions (#971)

* Initial plan

* feat: add comprehensive type tests for all helper functions

Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

* Move call() tests to Functions.php and update type assertions

Deleted Command/Functions.php and moved its call() tests to Helpers/Functions.php. Updated type assertions and test cases in Helpers/Functions.php for improved accuracy and consistency with current return types.

Co-Authored-By: Deeka Wong <8337659+huangdijia@users.noreply.github.com>

* fix: remove unnecessary backslash from Throwable type hint in dispatch job

* refactor: rename check:types script to type-testing for clarity

* fix: move type-testing script to the correct position in composer.json

* fix: remove unnecessary blank line before type-testing script in composer.json

* feat: add Support.php with various utility classes and type assertions

* fix: add return type hints for __invoke methods in ClientBuilderFactory and HubFactory

* feat: add PHPStan type assertion tests for macros component (#973)

* Initial plan

* feat: add type assertion tests for macros component

Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

* feat: add PHPStan type testing for cache component (#972)

* Initial plan

* feat: add comprehensive type testing for cache component

Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

* fix: remove unused imports in Cache and Macros components

* feat: update PHPStan configuration and enhance type assertions in various components

* fix: update parameter type hint for Str::of method

* fix: remove unused Factory method tests in Cache Manager

* feat: add type testing step in CI workflow

* fix: comment out unused setMultiple tests in Repository

* fix: comment out unused getMultiple tests in Repository

---------

Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
huangdijia added a commit that referenced this pull request Oct 29, 2025
* feat: add PHPStan type checking configuration and composer script

Add PHPStan configuration for type assertion testing and a new composer script for running type checks. This includes:
- New phpstan.types.neon.dist configuration file for type checking
- New types/ directory with helper function type assertions
- New composer script 'check:types' for running type analysis

This enhancement allows developers to validate type assertions for helper functions and ensure type safety across the codebase.

* Add comprehensive PHPStan type tests for all helper functions (#971)

* Initial plan

* feat: add comprehensive type tests for all helper functions

Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

* Move call() tests to Functions.php and update type assertions

Deleted Command/Functions.php and moved its call() tests to Helpers/Functions.php. Updated type assertions and test cases in Helpers/Functions.php for improved accuracy and consistency with current return types.

Co-Authored-By: Deeka Wong <8337659+huangdijia@users.noreply.github.com>

* fix: remove unnecessary backslash from Throwable type hint in dispatch job

* refactor: rename check:types script to type-testing for clarity

* fix: move type-testing script to the correct position in composer.json

* fix: remove unnecessary blank line before type-testing script in composer.json

* feat: add Support.php with various utility classes and type assertions

* fix: add return type hints for __invoke methods in ClientBuilderFactory and HubFactory

* feat: add PHPStan type assertion tests for macros component (#973)

* Initial plan

* feat: add type assertion tests for macros component

Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

* feat: add PHPStan type testing for cache component (#972)

* Initial plan

* feat: add comprehensive type testing for cache component

Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: huangdijia <8337659+huangdijia@users.noreply.github.com>

* fix: remove unused imports in Cache and Macros components

* feat: update PHPStan configuration and enhance type assertions in various components

* fix: update parameter type hint for Str::of method

* fix: remove unused Factory method tests in Cache Manager

* feat: add type testing step in CI workflow

* fix: comment out unused setMultiple tests in Repository

* fix: comment out unused getMultiple tests in Repository

---------

Co-Authored-By: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
Co-Authored-By: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants