View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002063 | Xdebug | Step Debugging | public | 2022-02-18 13:33 | 2022-04-04 11:32 |
Reporter | hacfi | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | 3.1.2 | ||||
Target Version | 3.1dev | Fixed in Version | 3.1.4 | ||
Summary | 0002063: Can't inspect ArrayObject storage elements | ||||
Description | When working with the ecommerce platform Spryker the contents of ArrayObjects can't be viewed in PhpStorm. ArrayObject is widely used in Spryker and the only way to view the data currently is using "Evaluate expression" and then call "->getArrayCopy();" on the ArrayObject. | ||||
Steps To Reproduce | Follow Spryker's installation guide at https://docs.spryker.com/docs/scos/dev/setup/installing-spryker-with-docker/installation-guides/installing-in-development-mode-on-macos-and-linux.html#installing-docker-prerequisites-on-macos-and-linux and either set up the b2b or b2c suite. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | macOS but I know it's the same issue on Ubuntu | ||||
PHP Version | 7.4.20-7.4.29 | ||||
|
Hi, Installing and learning a whole new platform is not a reasonable ask to try to reproduce a bug. Please provide a short reproducible scripts as is explained at http://xdebug.org/reporting-bugs cheers |
|
Thanks, will provide a reproducible script next week! |
|
Moving this back to feedback until I see the short reproducible script. |
|
This small script should make it reproduccible. I thought it was only an issue with PHP 7.4 but just noticed it also affects PHP 8.0. test.php (581 bytes)
<?php class Container { /** * @var \ArrayObject */ protected $permissions; public function __construct() { $this->permissions = $this->permissions ?: new ArrayObject(); } public function addPermission(Permission $permission) { $this->permissions->append($permission); } } class Permission { private $id; public function __construct($id) { $this->id = $id; } } $container = new Container(); $container->addPermission(new Permission(1)); $container->addPermission(new Permission(2)); $stop = 1; |
|
I've confirmed this, with an even much smaller test script:
With the breakpoint on the |
|
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-02-18 13:33 | hacfi | New Issue | |
2022-02-18 13:33 | hacfi | File Added: Screenshot 2022-02-18 at 14.12.26.jpg | |
2022-02-18 14:42 | derick | Assigned To | => derick |
2022-02-18 14:42 | derick | Status | new => feedback |
2022-02-18 14:42 | derick | Note Added: 0006202 | |
2022-02-18 14:56 | hacfi | Note Added: 0006203 | |
2022-02-18 14:56 | hacfi | Status | feedback => assigned |
2022-02-21 10:06 | derick | Status | assigned => feedback |
2022-02-21 10:06 | derick | Note Added: 0006205 | |
2022-02-27 09:11 | hacfi | Note Added: 0006222 | |
2022-02-27 09:11 | hacfi | File Added: Screenshot 2022-02-27 at 10.01.57.png | |
2022-02-27 09:11 | hacfi | File Added: test.php | |
2022-02-27 09:11 | hacfi | Status | feedback => assigned |
2022-03-07 19:12 | derick | Status | assigned => confirmed |
2022-03-07 19:12 | derick | Note Added: 0006234 | |
2022-03-09 15:14 | derick | Target Version | => 3.1dev |
2022-03-09 15:14 | derick | Summary | ArrayObject storage elements not viewable in PhpStorm => Can't inspect ArrayObject storage elements |
2022-03-09 15:14 | derick | Note Added: 0006237 | |
2022-03-09 15:59 | derick | Status | confirmed => resolved |
2022-03-09 15:59 | derick | Resolution | open => fixed |
2022-03-09 15:59 | derick | Fixed in Version | => 3.1dev |
2022-04-04 11:32 | derick | Status | resolved => closed |
2022-04-04 11:32 | derick | Fixed in Version | 3.1dev => 3.1.4 |