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

Usage.md: change example code to avoid PHP notice #644

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

k00ni
Copy link
Collaborator

@k00ni k00ni commented Sep 29, 2023

Type of pull request

  • Documentation update

About

Usage documentation contains buggy code. The following notice is thrown when used:

Only variables should be passed by reference

because of the following code part:

$font = reset($pdf->getFonts());

Acknowledgement

Reported by @gidzr in #619

The following notice is thrown:

> Only variables should be passed by reference

because of the following code part:

> $font = reset($pdf->getFonts());
@k00ni
Copy link
Collaborator Author

k00ni commented Sep 29, 2023

Ping @j0k3r

@k00ni k00ni merged commit 778e307 into master Sep 29, 2023
29 checks passed
@k00ni k00ni deleted the fix/usage.md-calculate-text-width-part branch September 29, 2023 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants