Skip to content

Update examples#279

Merged
szepeviktor merged 1 commit intoszepeviktor:2.xfrom
IanDelMar:examples
Feb 12, 2025
Merged

Update examples#279
szepeviktor merged 1 commit intoszepeviktor:2.xfrom
IanDelMar:examples

Conversation

@IanDelMar
Copy link
Copy Markdown
Contributor

Removes the following files as the examples are outdated:

  • fix-callable.php: PHPStan recognises $callable = [ $instance, $method ]; as a callable
  • fix-parse-url.php: PHPStan knows the return type of parse_url
  • fix-wpdb.php: the stubs file adds global $wpdb;

Updates the following files:

  • phpstan-full.neon: WordPress versions lower than 6.6 are not supported
  • impure-have-functions.stub: the stubs file informs PHPStan that have_posts and WP_Query::have_posts are impure
  • composer.json: bump the required PHP version to versions supported by the current version of phpstan-wordpress; bump the version of phpstan-wordpress to prevent incorrect requirements via copy and paste

@szepeviktor
Copy link
Copy Markdown
Owner

Touching relics?? :)

@szepeviktor
Copy link
Copy Markdown
Owner

Thank you.

@szepeviktor szepeviktor merged commit 963887b into szepeviktor:2.x Feb 12, 2025
@IanDelMar
Copy link
Copy Markdown
Contributor Author

You're very welcome.

@IanDelMar IanDelMar deleted the examples branch February 12, 2025 18:46
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