Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zephir stubs remove slash from \Exception class when extending #1907

Closed
ruudboon opened this issue Aug 22, 2019 · 1 comment
Assignees
Labels
bug

Comments

@ruudboon
Copy link
Member

@ruudboon ruudboon commented Aug 22, 2019

If an class extends \Exception it will result the slash will be removed
Phalcon\Collection\Exception
Source


/**
 * This file is part of the Phalcon Framework.
 *
 * (c) Phalcon Team <team@phalconphp.com>
 *
 * For the full copyright and license information, please view the LICENSE.txt
 * file that was distributed with this source code.
 */

namespace Phalcon\Collection;

use Throwable;

/**
 * Exceptions for the Collection object
 */
class Exception extends \Exception implements Throwable
{
}

Generated stubs

<?php

namespace Phalcon\Collection;

/**
 * Exceptions for the Collection object
 */
class Exception extends Exception implements \Throwable
{

}

This happens also in Phalcon\Exception
Related to phalcon/ide-stubs#25

@sergeyklay

This comment has been minimized.

Copy link
Member

@sergeyklay sergeyklay commented Oct 12, 2019

Fixed in the development branch. Feel free to open a new issue if the problem appears again. Thank you for the bug report.

@sergeyklay sergeyklay closed this Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.