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

Fix empty domain handling in Email validation and add PHP 8.3/8.4 support #159

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

koriym
Copy link
Member

@koriym koriym commented Nov 29, 2024

This PR provides two improvements:

  1. Fixes empty domain handling in Email validation which causes errors in newer PHP versions
  2. Adds explicit testing for PHP 8.3 and PHP 8.4

Changes

  • Enhanced domain validation in idnToAscii method to handle empty domains properly
  • Early return for invalid email formats
  • Added CI testing for PHP 8.3 and PHP 8.4

Ensure functions have correct type returns and optional parameters with default values.
This update improves the IDN to ASCII conversion by handling cases where the email address lacks a domain part or '@' symbol. By checking for these conditions, the function now gracefully returns the input as is, avoiding unnecessary warnings or errors during the conversion process.
Updated the continuous integration workflow to include PHP versions 8.3 and 8.4 in the testing matrix.
@harikt harikt merged commit 9eb7616 into auraphp:4.x Nov 29, 2024
11 checks passed
@koriym koriym deleted the php84 branch November 29, 2024 15:51
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