Error in PHP 7.4: Array to String Conversion
1. Error in PHP 7.4: Array to String Conversion. as shown in Figure 1
detail:Array to string conversion (View: ) (View: ) {"exception":"[object] (Illuminate\\View\\ViewException(code: 0): Array to string conversion (View: ) (View: ) at /var/www/object/storage/framework/views/d46496ced7898e0e528e0b64e7de63b84d995040.php:2)
2. Check the second line of the error file, the code is as follows. as shown in Figure 2
3. Decide to debug online, and decide to print this variable according to the array format
Array ( [name] => FacebookMessenger [facebook_code] =>
)
4. When echo, its parameters are cast to a string. Now the array is converted to a string and it fails. When modified to the following code, no more errors are reported

