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
Closed

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

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

Comments

@ruudboon
Copy link
Contributor

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants