ener6 - 2020-12-31 23:34:40
(In English below)
Al ejecutar el programa se produce el siguiente error:
[31-Dec-2020 15:06:29 America/La_Paz] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Niko9911\MysqlDump\TypeAdapter\Mysql::createTable() must be of the type string or null, array given, called in A:\servidor\er.bolivialaw.com\dump\Dump.php on line 656 and defined in A:\servidor\er.bolivialaw.com\dump\TypeAdapter\Mysql.php:100
Stack trace:
#0 A:\servidor\er.lainbolivia.com\dump\Dump.php(656): Niko9911\MysqlDump\TypeAdapter\Mysql->createTable(Array)
#1 A:\servidor\er.lainbolivia.com\dump\Dump.php(562): Niko9911\MysqlDump\Dump->getTableStructure('boletas')
#2 A:\servidor\er.lainbolivia.com\dump\Dump.php(399): Niko9911\MysqlDump\Dump->exportTables()
#3 A:\servidor\er.lainbolivia.com\dump\pr.php(17): Niko9911\MysqlDump\Dump->start('eemDump.sql')
#4 {main}
thrown in A:\servidor\er.lainbolivia.com\dump\TypeAdapter\Mysql.php on line 100
Por otro lado, revisando el código fuente que corresponde a
TypeAdapter\Mysql.php línea 100,
encuentro una sintaxis que no está documentada en PHP:
public function createTable(?string $row = null): string
El parámetro (?string) no tiene documentación en www.php.com
Lamentablemente a causa de ambas cosas, no me es posible utilizar el código.
------- google translate -------
Error executing program and undocumented syntax
When executing the program the following error occurs:
[31-Dec-2020 15:06:29 America/La_Paz] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Niko9911\MysqlDump\TypeAdapter\Mysql::createTable() must be of the type string or null, array given, called in A:\servidor\er.bolivialaw.com\dump\Dump.php on line 656 and defined in A:\servidor\er.bolivialaw.com\dump\TypeAdapter\Mysql.php:100
Stack trace:
#0 A:\servidor\er.lainbolivia.com\dump\Dump.php(656): Niko9911\MysqlDump\TypeAdapter\Mysql->createTable(Array)
#1 A:\servidor\er.lainbolivia.com\dump\Dump.php(562): Niko9911\MysqlDump\Dump->getTableStructure('boletas')
#2 A:\servidor\er.lainbolivia.com\dump\Dump.php(399): Niko9911\MysqlDump\Dump->exportTables()
#3 A:\servidor\er.lainbolivia.com\dump\pr.php(17): Niko9911\MysqlDump\Dump->start('eemDump.sql')
#4 {main}
thrown in A:\servidor\er.lainbolivia.com\dump\TypeAdapter\Mysql.php on line 100
On the other hand, reviewing the source code that corresponds to
TypeAdapter\Mysql.php line 100,
I find a syntax that is not documented in PHP:
public function createTable(?string $row = null): string
The (? String) parameter has no documentation on www.php.com
Unfortunately because of both, I am unable to use the code.