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

Deprecation error in FileMaker.php with PHP 8.2 (and fix) #48

Open
karinehansen opened this issue Jul 7, 2023 · 1 comment
Open

Deprecation error in FileMaker.php with PHP 8.2 (and fix) #48

karinehansen opened this issue Jul 7, 2023 · 1 comment

Comments

@karinehansen
Copy link

I'm receiving the following error:
Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /path to airmoi_FileMaker/src/FileMaker.php on line 839

It is easily fixed by updating line 839 in FileMaker.php to:
$restParams[] = urlencode($option) . ($value === true || $value == null ? '' : '=' . urlencode($value));
This adds a $value==null check.

@airmoi
Copy link
Owner

airmoi commented Dec 26, 2023

Hi,

Try to use the dataAPI branch which is already PHP8 compatible

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

No branches or pull requests

2 participants