Lars Moelleken
Lars Moelleken
@sebdesign Thanks for the update. Can you please take a look at this fix: https://github.com/voku/portable-ascii/commit/abfac74fac216982f1c59f2a3c62a90df3f8d72a
so the ".phpmetrics.yml" is not valid anymore? Is there a example for a ".phpmetrics.json" config? I don't know if this config is 100% correct, but this is what I have...
@FractalizeR but in this example I see "exclude" as string but in the code it will expect an array (https://github.com/phpmetrics/PhpMetrics/blob/master/src/Hal/Component/File/Finder.php#L55) ... also in the example there is only the html-...
ok, if some finds this e.g. via google (phpmetrics +exclude) -> this is working: https://github.com/phpmetrics/PhpMetrics/blob/1a3c100891fe60e401fb0b2c136a689eecb398c3/src/Hal/Application/Config/Validator.php#L33 ```json { "extensions": [ "php" ], "exclude": "infra,tests,composer,archiv,vendor,thirdparty,generated,tmp", "report-xml": "./build/report/phpmetrics.xml", "report-html": "./build/report/phpmetrics.html", "report-csv": "./build/report/phpmetrics.csv" }...
@rcsofttech85 `json_validate` only validates the JSON, not the data in the JSON @szepeviktor It's already possible to validate / extract multidimensional data from JSON e.g. https://github.com/voku/Arrayy/blob/eaea4564b719812f8ac48ebbcd96cfffdcfa17de/tests/PHPStan/AnalyseTest.php#L14
@FredoVelcro you can use [UTF8::encode()](https://github.com/voku/portable-utf8#encodestring-encoding-string-str-bool-autodetectfromencoding--true-string-fromencoding----string), it will use [UTF8::str_detect_encoding()](https://github.com/voku/portable-utf8#str_detect_encodingstring-str--string) in the background to detect UTF-16 and UTF-32. I hope this will help you && happy coding!
here is a working example: https://github.com/voku/simple_html_dom/commit/0377aa42923fa46d1ee8757e17989c2be1addc50#diff-f9e35e3ee28495a595a36e0f7a4ae154R84
Sorry for the loooong delay :) .. I have the typos in nearly all of my repos and I wanted to fix it everywhere.
@Wulfheart what do you think about this : ```@return (U is null ? (S is NULL ? None : Option) : Option)``` -> https://phpstan.org/r/9018394b-dacb-4d78-b9b7-226e63c6537b
Hi, I merged performance improvements from the str lib into a maintained fork of Stringy + fixes from the community. Maybe you can find there some inspirations?! ☺ https://github.com/voku/Stringy