Skip to content

feat: Ensure Nextcloud code use strict comparaison - #105

Open
CarlSchwan wants to merge 2 commits into
mainfrom
carl/strict-comparaison
Open

CarlSchwan wants to merge 2 commits into
mainfrom
carl/strict-comparaison

Conversation

@CarlSchwan

@CarlSchwan CarlSchwan commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add strict: true to in_array when possible

Use === and !== instead of == and !=

Motivation and context

Security and correctness

How has this been tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan CarlSchwan self-assigned this Sep 3, 2026
@CarlSchwan
CarlSchwan force-pushed the carl/strict-comparaison branch from da15883 to 63c145d Compare September 24, 2026 12:26
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwan force-pushed the carl/strict-comparaison branch from 63c145d to fe01cc6 Compare September 24, 2026 13:34
* To use it:
* $config = RectorConfig::configure()[…]->withImportNames(importShortClasses:false);
* $config->registerService(NextcloudNamespaceSkipVoter::class, tag:ClassNameImportSkipVoterInterface::class);
* $config->registerService(NextcloudNamespaceSkipVoter::class);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change? I remember the tag as needed.

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.

3 participants