Skip to content

fix: phpstan - #1185

Merged
nunomaduro merged 1 commit into
dev-null-sh:productionfrom
kachelle:fix/device-request-rules-type
Oct 26, 2026
Merged

nunomaduro merged 1 commit into
dev-null-sh:productionfrom
kachelle:fix/device-request-rules-type

Conversation

@kachelle

@kachelle kachelle commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

fix stan

Summary by CodeRabbit

  • Refactor
    • Updated the validation rule type annotation to reflect the values it can contain. No runtime behavior changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c2677918-b690-47f7-aa5b-6608d323b086
Commits

Reviewing files that changed from the base of the PR and between aa654ef and 2b8f120.

Files selected for processing: 1
  • app/Http/Requests/CreateApiDeviceRequest.php

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The rules() return annotation in CreateApiDeviceRequest now allows mixed values in each validation-rule list. Runtime validation logic is unchanged.

Changes: Device request rule annotation

Layer / File(s) Summary
Update rule list element type
app/Http/Requests/CreateApiDeviceRequest.php
The return annotation changes each rule list’s element type from string to mixed. Runtime validation logic is unchanged.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related PRs

  • dev-null-sh/dev-null.sh#1042: Added a Rule::in validation rule to CreateApiDeviceRequest::rules(), which the updated annotation accommodates.

Suggested reviewers: simonhamp

Merge Risk: Minimal · up to 2b8f1

No actionable merge-blocking risk was identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix: phpstan" is short and names the tool involved, and the changeset does address a PHPStan failure. However, the only change is a docblock return annotation in CreateApiDeviceRequest::rul…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix: phpstan" is short and names the tool involved, and the changeset does address a PHPStan failure. However, the only change is a docblock return annotation in CreateApiDeviceRequest::rules() going from list<string> to list<mixed>, and the title does not say what was fixed or why. It is partially related: it names the right tool but not the specific change. It is not vague in the sense of "misc updates", so it does not require an inconclusive result.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@nunomaduro
nunomaduro merged commit 9389f5a into dev-null-sh:production Oct 26, 2026
1 check was pending
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