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

Zend_View_Helper_HeadLink notice using compact() #414

Open
AntoineMarques opened this issue Apr 29, 2024 · 0 comments
Open

Zend_View_Helper_HeadLink notice using compact() #414

AntoineMarques opened this issue Apr 29, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@AntoineMarques
Copy link

When using Zend_View_Helper_HeadLink to append a stylesheet as the documentation says a notice is thrown.
This is due to extras being undefined when calling compact on line 393.

Reproduce

class HeadLinkTest extends \PHPUnit\Framework\TestCase
{
    public function test() 
    {
        $this->expectException(\PHPUnit\Framework\Error\Notice::class);

        $helper = new \Zend_View_Helper_HeadLink();
        $helper->appendStylesheet('foo.css');
    }
}
@develart-projects develart-projects added bug Something isn't working help wanted Extra attention is needed labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants