Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
125 views

I want to check if a callable's return type is an instance of another type. For example, let's say I a have: A class Pigeon which extends Animal. A function addSupplier() which takes a callable ...
Cardinal System's user avatar
0 votes
0 answers
238 views

I have a really screwed up Debian 10 system. It has about 20 years worth of customer records I have been tasked with recovering. I'm pretty sure the problem started, when someone upgraded it from ...
billbrach's user avatar
1 vote
0 answers
69 views

I have an expensive operation that runs in my PHP application when the /api/replicate endpoint is requested. The operation takes roughly 30 seconds, so I want to prevent this endpoint from being ...
Cardinal System's user avatar
0 votes
1 answer
92 views

We are upgrading our laravel project, and it includes a language upgrade from php7 to php8. Consider this code: $a = new stdClass() count($a) Will result in: // php7 ==> 1 // php8 ==> ...
yuvi's user avatar
  • 18.5k
0 votes
1 answer
91 views

I get multiples php errors in server log , the error show on 2 lines of my php code, However php script is working but it show these errors in server log. PHP Notice: Trying to access array offset on ...
smallbee's user avatar
  • 343
0 votes
1 answer
426 views

Somewhere it said that Drupal 7.8 updated core and modules are php compatible with php8.1. However, when I change the cpanel multiphpmanager for the Drupal 7 domain to php8.1, the site crashes. The ...
Mike Burman's user avatar
-1 votes
2 answers
85 views

i tried to create a script to redirect link of amazon, but when pass the link in a get variable url not return Url after the character &, i tried to echo the variable $_GET['tolink'] but display a ...
gassiopea's user avatar
2 votes
1 answer
3k views

I created a step-by-step form using Laravel Livewire, following this tutorial: here. However, I'm experiencing some issues when logging in after logging out, when I submit the form I get a alert: &...
BAKKALIAYOUB's user avatar
0 votes
0 answers
146 views

My Old project is on 5.6 so Sodium extension for Encryption/Decryption is not working so my system engineer set some setting that if I run file with .php7 extension it run on php 7 and normal .php ...
New Laravel Bugs's user avatar
0 votes
0 answers
491 views

I've installed firebase/php-jwt as described in the repo. In composer file. "firebase/php-jwt": "~5.5.1", "paragonie/sodium_compat" : "~1.19.0", In my PHP file ...
Ariful Haque's user avatar
  • 3,748
0 votes
1 answer
41 views

Under the Laravel 7 (php7) system, if I query any id of my table, there is no result, but if I enter the id value as a string, then there is a result. In the table, the id column type is int(11). ...
Prograptor's user avatar
1 vote
1 answer
82 views

I have this in my unit test code: $data = $this->_createSfApiFindMock($cisDataCount); var_dump($data()); die(); output: class Closure#731 (3) { public $static => array(4) { '...
whitesiroi's user avatar
  • 2,873
0 votes
2 answers
524 views

I would like to edit the kpi section on the admin orders page,in Prestashop 1.7, so i created a module, i tried to use a custom module class, in the module's main php file, but i got error so I ...
tarek fellah's user avatar
-1 votes
2 answers
513 views

I ran into the error: ErrorException Undefined variable: pesan I have gone through similar problems solved here but none of the solutions have worked for me. The error is thrown from my ...
Farid Naufal's user avatar
2 votes
0 answers
364 views

Fatal error: Uncaught TypeError... Why is this an exception according to PHP if TypeError inherits from Error? Why can't set_error_handler() catch this type of error? https://www.php.net/manual/en/...
user avatar

15 30 50 per page
1
2 3 4 5
182