voku
Repos
339
Followers
338
Following
183

🉑 Portable UTF-8 library - performance optimized (unicode) string functions for PHP.

470
58

🔡 Portable ASCII library - performance optimized (ascii) string functions for PHP.

351
21

㊙️ AntiXSS | Protection against Cross-site scripting (XSS) via PHP

554
98

🗃 Array manipulation library for PHP, called Arrayy!

417
33

📜 Modern Simple HTML DOM Parser for PHP

637
81

:bookmark_tabs: .dotfiles for Bash (Linux) / ZSH (Linux) / Git Bash (Windows) / Cygwin (Windows) / Bash on Ubuntu on Windows

199
50

Events

Update actions/cache action to v3.0.10

Merge pull request #28 from voku/renovate/actions-cache-3.x

Update actions/cache action to v3.0.10

Created at 22 hours ago
pull request closed
Update actions/cache action to v3.0.10

Mend Renovate

This PR contains the following updates:

| Package | Type | Update | Change | |---|---|---|---| | actions/cache | action | patch | v3.0.8 -> v3.0.10 |


Release Notes

v3.0.10

Compare Source

  • Fix a bug with sorting inputs.
  • Update definition for restore-keys in README.md

v3.0.9

Compare Source

  • Enhanced the warning message for cache unavailability in case of GHES.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

Created at 22 hours ago
Created at 5 days ago
Created at 6 days ago
Created at 6 days ago
Created at 1 week ago

Apply fixes from StyleCI

Merge pull request #36 from voku/analysis-PG5Ew9

Apply fixes from StyleCI

Created at 1 week ago
pull request closed
Apply fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.


For more information, click here.

Created at 1 week ago
voku create branch analysis-PG5Ew9
Created at 1 week ago
pull request opened
Apply fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.


For more information, click here.

Created at 1 week ago
opened issue
CURLOPT_POSTFIELDS accepts also an array

Bug report

CURLOPT_POSTFIELDS accepts also an array not only empty-string.

"The full data to post in a HTTP "POST" operation. This parameter can either be passed as a urlencoded string like 'para1=val1&para2=val2&...' or as an array with the field name as key and field data as value. If value is an array, the Content-Type header will be set to multipart/form-data. Files can be sent using CURLFile or CURLStringFile, in which case value must be an array." - https://www.php.net/manual/en/function.curl-setopt.php

Code snippet that reproduces the problem

https://phpstan.org/r/db599e65-dfae-4e85-90bc-6bc96feadf96

Expected output

no error

Did PHPStan help you today? Did it make you happy in any way?

Verified some curl options today :+1:

Created at 1 week ago
callable phpdoc is not working without parameter

I am not sure where I need to look at, if you point me to the affected code, I will try to fix it. :)

example:

    /**
     * @param callable(string): string $callback // param is detected 
     * @param callable(): numeric $callback2 // param is not found!
     *
     * @return string
     */
    public function withCallback($callback, $callback2)
    {
        return $callback('foo');
    }
Created at 1 week ago
voku create tag 0.19.6
Created at 1 week ago

[+]: "PhpCodeParser" -> try to fix autoload

issue #11

[*]: update the changelog

Created at 1 week ago

[+]: "PhpCodeParser" -> use all types (not only from phpdoc) from parent classes & interfaces

Created at 1 week ago
started
Created at 2 weeks ago
Created at 2 weeks ago

declare "analyze" as an alias for "analyse"

Merge pull request #10 from staabm/patch-1

declare "analyze" as an alias for "analyse"

Created at 2 weeks ago
pull request closed
declare "analyze" as an alias for "analyse"

for american english vs. british englisch compat :-)

Created at 2 weeks ago
create tag
voku create tag 7.9.4
Created at 4 weeks ago

[-]: small clean-up only

Created at 4 weeks ago

[+]: fix phpstan (1.8.4) reported stuff

Created at 4 weeks ago
opened issue
Cannot assign offset with ≥ PhpStan 1.8.3

Bug report

Offset checks for mixed array types seems to report some false-positive errors for us. e.g.:

Code snippet that reproduces the problem

https://phpstan.org/r/85e2b066-90b6-4770-828d-a7254ed101c7

Expected output

no error

https://3v4l.org/PGCCS

Did PHPStan help you today? Did it make you happy in any way?

It helps me today to force some types in value objects, and I hope this will reduce the complexity of our software. :+1:

Created at 4 weeks ago
Created at 4 weeks ago
pull request opened
Create .gitattributes

Reduce the files that will be shipped via composer. https://php.watch/articles/composer-gitattributes

Created at 1 month ago

Create .gitattributes

Reduce the files that will be shipped via composer. https://php.watch/articles/composer-gitattributes

Created at 1 month ago
Created at 1 month ago
closed issue
`IfConditionHelper`: AssignOp\Coalesce shouldn't pops up "Do not compare objects directly" error

What is this feature about (expected vs actual behaviour)?

Expected: no issue.

Actual:

Coalesce: Do not compare objects directly, ACoalesceClass and ACoalesceInterface|null found.
Coalesce: Do not compare objects directly, ACoalesceInterface|null and ACoalesceClass found.

How can I reproduce it?

interface ACoalesceInterface {}
class ACoalesceClass implements ACoalesceInterface {}

class AFoo {
    public function __construct(
        private ?ACoalesceInterface $var
    ) {
        $this->var ??= new ACoalesceClass();
    }
}

Does it take minutes, hours or days to fix?

I tried to reproduce it in a PR, but the error never pops up in the test suite, probably I can figure out the proper position for the test case.

Any additional information?

PHP: 8.1 voku/phpstan-rules: 3.1.1

Created at 1 month ago
issue comment
`IfConditionHelper`: AssignOp\Coalesce shouldn't pops up "Do not compare objects directly" error

fixed: "accepts" is working here, I only missed that it returns an \PHPStan\TrinaryLogic object and not bool :facepalm:

Created at 1 month ago