poggit / libasynql

Asynchronous MySQL access library for PocketMine plugins.
https://poggit.github.io/libasynql
Apache License 2.0
134 stars 44 forks source link

Warning: Unterminated comment starting line 31 in phar:///home/minecraft/plugins/DanBamPrison_v1.0.0.phar/src/hybrid/libs/poggit/libasynql/result/SqlChangeResult.php on line 31 #40

Closed rjworks closed 4 years ago

rjworks commented 4 years ago
Warning: Unterminated comment starting line 31 in phar:///home/minecraft/plugins/DanBamPrison_v1.0.0.phar/src/hybrid/libs/poggit/libasynql/result/SqlChangeResult.php on line 31
 License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

declare(strict_types=1);

namespace hybrid\libs\poggit\libasynql\result;

use hybrid\libs\poggit\libasynql\SqlResult;

class SqlChangeResult extends SqlResult{
        private $affectedRows;

        public function __construct(int $affectedRows){
                $this->affectedRows = $affectedRows;
        }

        public function getAffectedRows() : int{
                return $this->affectedRows;
        }
}

Fatal error: Uncaught Error: Class 'hybrid\libs\poggit\libasynql\result\SqlChangeResult' not found in phar:///home/minecraft/plugins/DanBamPrison_v1.0.0.phar/src/hybrid/libs/poggit/libasynql/sqlite3/Sqlite3Thread.php:100
Stack trace:
#0 phar:///home/minecraft/plugins/DanBamPrison_v1.0.0.phar/src/hybrid/libs/poggit/libasynql/base/SqlSlaveThread.php(85): hybrid\libs\poggit\libasynql\sqlite3\Sqlite3Thread->executeQuery(Object(SQLite3), 1, 'UPDATE HybridPE...', Array)
#1 [internal function]: hybrid\libs\poggit\libasynql\base\SqlSlaveThread->run()
#2 {main}
  thrown in phar:///home/minecraft/plugins/DanBamPrison_v1.0.0.phar/src/hybrid/libs/poggit/libasynql/sqlite3/Sqlite3Thread.php on line 100
SOF3 commented 4 years ago

How did you compile your phar? It seems the file is corrupted.

rjworks commented 4 years ago

using virion tools but it’s ok now

SOF3 commented 4 years ago

This is most likely a build error.