PHP Classes

Error al ejecutar el programa y sintaxis no documentada

Recommend this page to a friend!

      PHP MySQLDump  >  All threads  >  Error al ejecutar el programa y...  >  (Un) Subscribe thread alerts  
Subject:Error al ejecutar el programa y...
Summary:Error al ejecutar el programa y sintaxis no documentada
Messages:2
Author:ener6
Date:2020-12-31 23:34:40
 

  1. Error al ejecutar el programa y...   Reply   Report abuse  
Picture of ener6 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.

  2. Re: Error al ejecutar el programa y...   Reply   Report abuse  
Picture of Niko Niko - 2021-01-01 04:12:53 - In reply to message 1 from ener6
No support provided here. Submit a issue to original repo. Only bugs, no free support.

License is MIT, no warranty provided.

Ur using it wrong according the errors. Read docs and if not sure, read code.