Skip to content

Refactor constructor parameters in exception class#7

Merged
jedrzejjarocki merged 1 commit intomainfrom
jedrzejjarocki-patch-1
Jan 22, 2026
Merged

Refactor constructor parameters in exception class#7
jedrzejjarocki merged 1 commit intomainfrom
jedrzejjarocki-patch-1

Conversation

@jedrzejjarocki
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modernizes the RegonServiceCallFailedException class by replacing PHPDoc type annotations with native PHP type declarations in the constructor parameters.

Changes:

  • Updated constructor to use native type hints instead of PHPDoc annotations
  • Changed $code parameter type from int|mixed to strict int with default value of 0
  • Changed $previous parameter type to use nullable type syntax (?Exception)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Exceptions/RegonServiceCallFailedException.php
@jedrzejjarocki jedrzejjarocki merged commit dd95c01 into main Jan 22, 2026
@MaciekR-Job MaciekR-Job deleted the jedrzejjarocki-patch-1 branch February 12, 2026 15:57
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