From 2e49b3ba607cf4bb2c43333e5927006108801370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Lino?= Date: Thu, 17 Jul 2025 16:42:14 -0300 Subject: [PATCH] docs: Fixing typo on PHP sample (#8566) --- docs/source/languages/php.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/languages/php.md b/docs/source/languages/php.md index 8cb966481..e4391e03a 100644 --- a/docs/source/languages/php.md +++ b/docs/source/languages/php.md @@ -48,7 +48,7 @@ function). Then you can read a FlatBuffer binary file, which you pass the contents of to the `GetRootAsMonster` function: ~~~{.php} - // It is recommended that your use PSR autoload when using FlatBuffers in PHP. + // It is recommended that you use PSR autoload when using FlatBuffers in PHP. // Here is an example: function __autoload($class_name) { // The last segment of the class name matches the file name. @@ -69,7 +69,7 @@ pass the contents of to the `GetRootAsMonster` function: // Read the contents of the FlatBuffer binary file. $filename = "monster.dat"; $handle = fopen($filename, "rb"); - $contents = $fread($handle, filesize($filename)); + $contents = fread($handle, filesize($filename)); fclose($handle); // Pass the contents to `GetRootAsMonster`.