phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

Type hint issue

Open lhmuk opened this issue 1 year ago • 1 comments

VSCode 1.92.0 PHP Extension: v1.49.15818 (pre-release) Laravel 10.48.8

image

lhmuk avatar Aug 02 '24 02:08 lhmuk

Thank you for the test case; I've rewritten it, added Laravel 10, and tested it. So far there's no error in my case, but I have a clue what may be the culprit sometimes.

image

The code:

<?php

$string = '100, abc';

preg_match('/\d+/', $string, $matches);

collect($matches)

    ->reject(fn($value) => is_numeric($value))

    ->transform(function ($value) {
        return preg_replace('/b/', '', $value);
    });

I'll be looking into it.

jakubmisek avatar Aug 04 '24 15:08 jakubmisek