Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PHPStan packages #302

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Update PHPStan packages #302

merged 1 commit into from
Oct 25, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 25, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mglaman/phpstan-drupal ^1.0.3 -> ^1.2.0 age adoption passing confidence
phpstan/phpstan-deprecation-rules ^1.0.0 -> ^1.1.4 age adoption passing confidence

Release Notes

mglaman/phpstan-drupal (mglaman/phpstan-drupal)

v1.2.0

Compare Source

Adds phpstan/phpstan-deprecation-rules as a direct dependency and minimum version of 1.1.4. This allows ignoring deprecation warnings inside PHPUnit tests using @group legacy for the Symfony PHPUnit Bridge.

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.37...1.2.0

v1.1.37

Compare Source

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.36...1.1.37

v1.1.36

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.35...1.1.36

v1.1.35

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.34...1.1.35

v1.1.34

Compare Source

This release fixes EntityFieldReflection from causing stub files with @property annotations on entity type classes from being ignored!

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.33...1.1.34

v1.1.33

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.32...1.1.33

v1.1.32

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.31...1.1.32

v1.1.31

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.30...1.1.31

v1.1.30

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.29...1.1.30

v1.1.29

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.28...1.1.29

v1.1.28

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.27...1.1.28

v1.1.27

Compare Source

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.26...1.1.27

v1.1.26

Compare Source

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.25...1.1.26

v1.1.25

Compare Source

Quick patch release following up on the RequestStack forward compatibility shim work in https://github.com/mglaman/phpstan-drupal/pull/446. This reduces the noise by only reporting an error when using the method deprecated in Symfony 5 and removed in Symfony 6.

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.24...1.1.25

v1.1.24

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.23...1.1.24

v1.1.23

Compare Source

Includes a hotfix for 1.1.22 to fix SymfonyCmfRoutingInClassMethodSignatureRule

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.22...1.1.23

v1.1.22

Compare Source

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.21...1.1.22

v1.1.21

Compare Source

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.20...1.1.21

v1.1.20

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.19...1.1.20

v1.1.19

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.18...1.1.19

v1.1.18

Compare Source

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.17...1.1.18

v1.1.17

Compare Source

Fixes with #​409 allow using PHPStan without the rich node parser.

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.16...1.1.17

v1.1.16

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.15...1.1.16

v1.1.15

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.14...1.1.15

v1.1.14

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.13...1.1.14

v1.1.13

Compare Source

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.12...1.1.13

v1.1.12

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.11...1.1.12

v1.1.11

Compare Source

Entity field analysis improvements

Field types provided by Drupal core have been stubbed to provide @property annotations. If you have a field value and it has been type hinted, PHPStan will not complain about accessing a non-existent property.

Example:

// EntityReferenceItem.
$entity_reference_field = $node->get('field_entity_reference')->first();
assert($entity_reference_field instanceof EntityReferenceItem);
assertType(EntityReferenceItem::class, $entity_reference_field);
assertType('int|string', $entity_reference_field->target_id);
assertType('Drupal\Core\Entity\EntityInterface', $entity_reference_field->entity);

Updated deprecated global constants

Drupal 9.3.x and 9.4.x deprecated more global constants. The rule to check for these has been updated.

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.10...1.1.11

v1.1.10

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.9...1.1.10

v1.1.9

Compare Source

This relaxes the constraints so that phpstan-drupal can be installed on the Drupal 10.0.x branch.

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.8...1.1.9

v1.1.8

Compare Source

RenderCallbackRule Improvements

The RenderCallbackRule added in 1.1.5 had various flaws. This release should fix them:

  • Improper analysis of #access_callback – not an array, single callable.
  • Improper analysis of #lazy_builder – an array, but of call_user_func_array values ([callable, args])
  • service_name:method style callbacks were not parsed, now they are

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.7...1.1.8

v1.1.7

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.6...1.1.7

v1.1.6

Compare Source

Hotfix.

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.5...1.1.6

v1.1.5

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.4...1.1.5

v1.1.4

Compare Source

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.1.3...1.1.4

v1.1.3

Compare Source

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.2...1.1.3

v1.1.2

Compare Source

Highlights

With #​264 we have added the ability to look up discovered extensions, which should greatly improve the rules which load files called by module_load_include and ModuleHandlerInterface::loadInclude. Previously these two rules had to re-scan for extensions whenever the function or method was analyzed.

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.1...1.1.2

v1.1.1

Compare Source

Major fix for sites without drupal/core-dev

This release includes fixes for Class PHPUnit\Framework\TestCase not found. errors!

testcase-not-found

Note you must have this in your phpstan.neon if drupal/core-dev is missing:

	excludePaths:
		-  */tests/src/*/*.php

What's Changed

New Contributors

Full Changelog: mglaman/phpstan-drupal@1.1.0...1.1.1

v1.1.0

Compare Source

Backwards compatibility warning

1.1.0 has introduced a breaking change in the configuration schema. See below for more information.

What's Changed

Full Changelog: mglaman/phpstan-drupal@1.0.3...1.1.0

Configuration changes

The drupal.entityTypeStorageMapping allowed specifying what storage classes were used for different entity types. With #​239, support was added to specify what entity class an entity type uses. With #​250 the way entity type information is configured has been changed.

Previously:

parameters:
	drupal:
		entityTypeStorageMapping:
			node: Drupal\node\NodeStorage
			taxonomy_term: Drupal\taxonomy\TermStorage
			user: Drupal\user\UserStorage

Now there is an entityMapping property so that we can handle future enhancements with entity type static analysis.

parameters:
	drupal:
		entityMapping:
			node:
				class: Drupal\node\Entity\Node
				storage: Drupal\node\NodeStorage
			taxonomy_term:
				class: Drupal\taxonomy\Entity\Term
				storage: Drupal\taxonomy\TermStorage
			user:
				class: Drupal\user\Entity\User
				storage: Drupal\user\UserStorage
			block:
				class: Drupal\block\Entity\Block
phpstan/phpstan-deprecation-rules (phpstan/phpstan-deprecation-rules)

v1.1.4

Compare Source

  • 089d8a8 - DeprecatedScopeResolver - documentation in README
  • ce6a85a - DeprecatedScopeResolver - description in PHPDoc
  • 0f3fbc3 - DeprecatedScopeResolver is covered with backward compatibility promise
  • 6d416c7 - Add deprecated scope resolving
  • 94d68d3 - Update dependency slevomat/coding-standard to v8.12.0
  • 4b7516f - Update dependency slevomat/coding-standard to v8.11.1
  • 9d366de - Update dependency slevomat/coding-standard to v8.10.0
  • a0b8839 - Update build-cs
  • 67b670f - Update PHPCS
  • e148790 - Update metcalfc/changelog-generator action to v4.1.0
  • cbbbaa9 - add test for deprecation inheritance in trait

v1.1.3

Compare Source

  • a22b36b - report deprecated properties accessed by self
  • e3761ea - Update github-actions to v4

v1.1.2

Compare Source

v1.1.1

Compare Source

  • 2c6792e - Move deprecationRulesInstalled parameter to the right file

v1.1.0

Compare Source

  • f6e02de - Override deprecationRulesInstalled config to true
  • 763fe3e - Update build.yml
  • b814f32 - Create tag workflow
  • 51139d3 - Fixes
  • de8683a - Update dependency slevomat/coding-standard to v7.2.1
  • 7bdf21f - Update FetchingDeprecatedConstRule.php
  • 914c542 - Update dependency slevomat/coding-standard to v7.2.0
  • 169d905 - Update dependency slevomat/coding-standard to v7.1
  • 82044cb - Drop alias
  • 755b8c2 - Update workflow
  • 1c3806d - Drop support for PHP 7.1, require PHPStan 1.5.0
  • aea2fbf - Update dependency slevomat/coding-standard to v7.0.20
  • 022b2de - Update actions/checkout action to v3
  • 21aa2be - Update dependency slevomat/coding-standard to v7.0.19
  • 52ce6c6 - Update dependency slevomat/coding-standard to v7
  • 5855ecd - Update renovate.json
  • 04ca04a - Update lock-closed-issues.yml
  • 4e3fd4d - Update github-actions
  • c838583 - Update metcalfc/changelog-generator action to v1.0.1
  • ef8f5a2 - Delete dependabot.yml
  • 0e3fae6 - Update and rename renovate.json to .github/renovate.json
  • d54e093 - Add renovate.json
  • 0a40844 - Update phpunit.xml
  • d63ce28 - Update release.yml
  • f8d8cb5 - Tweet release action
  • fb17fd1 - Allow Composer plugins
  • 7f052b7 - Revert "Use dev PHP-Parser"
  • 395d1ee - Test all jobs on PHP 8.1
  • d6102eb - Composer > Remove --no-suggest
  • b711513 - Test on PHP 8.1
  • 05df7ae - Use dev PHP-Parser
  • 2cbafb6 - Fix assertions for phpstan master

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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

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

@renovate renovate bot force-pushed the renovate/phpstan-packages branch from c0b0f6d to 7c4d1d6 Compare October 25, 2023 08:24
@github-actions github-actions bot temporarily deployed to pantheon-pr-302 October 25, 2023 08:29 Destroyed
@justafish justafish merged commit 47097b5 into main Oct 25, 2023
@justafish justafish deleted the renovate/phpstan-packages branch October 25, 2023 12:04
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.

1 participant