formula: fix undefined method error
formula: fix undefined method error

Fixes: Homebrew/homebrew#47673.
Closes Homebrew/homebrew#47672.

Signed-off-by: Martin Afanasjew <54669547a225ff20cba8b75a4adca540eef25858@afanasjew.de>

MikeMcQuaid/brew,maxim-belkin/brew,reitermarkus/brew,pseudocody/brew,reitermarkus/brew,hanxue/linuxbrew,palxex/brew,bfontaine/brew,konqui/brew,reelsense/brew,DomT4/brew,alyssais/brew,rwhogg/brew,Homebrew/brew,tonyg/homebrew,Homebrew/brew,claui/brew,palxex/brew,maxim-belkin/brew,ilovezfs/brew,konqui/brew,mahori/brew,maxim-belkin/brew,muellermartin/dist,rwhogg/brew,JCount/brew,muellermartin/dist,amar-laksh/brew_sudo,gordonmcshane/homebrew,EricFromCanada/brew,reelsense/brew,mgrimes/brew,reelsense/brew,tonyg/homebrew,pseudocody/brew,gregory-nisbet/brew,MikeMcQuaid/brew,mahori/brew,claui/brew,vitorgalvao/brew,toonetown/homebrew,Homebrew/brew,claui/brew,vitorgalvao/brew,MikeMcQuaid/brew,DomT4/brew,Homebrew/brew,vitorgalvao/brew,staticfloat/brew,zmwangx/brew,Linuxbrew/brew,staticfloat/brew,sjackman/homebrew,reitermarkus/brew,mgrimes/brew,Linuxbrew/brew,aw1621107/brew,DomT4/brew,mistydemeo/homebrew,gordonmcshane/homebrew,gregory-nisbet/brew,sjackman/homebrew,AnastasiaSulyagina/brew,tonyg/homebrew,amar-laksh/brew_sudo,mgrimes/brew,EricFromCanada/brew,muellermartin/dist,MikeMcQuaid/brew,mahori/brew,JCount/brew,amar-laksh/brew_sudo,jmsundar/brew,vitorgalvao/brew,jmsundar/brew,palxex/brew,EricFromCanada/brew,rwhogg/brew,bfontaine/brew,jmsundar/brew,ilovezfs/brew,DomT4/brew,alyssais/brew,hanxue/linuxbrew,konqui/brew,zmwangx/brew,zmwangx/brew,ilovezfs/brew,mistydemeo/homebrew,JCount/brew,hanxue/linuxbrew,gordonmcshane/homebrew,sjackman/homebrew,pseudocody/brew,staticfloat/brew,AnastasiaSulyagina/brew,aw1621107/brew,mahori/brew,gregory-nisbet/brew,reitermarkus/brew,aw1621107/brew,toonetown/homebrew,AnastasiaSulyagina/brew,sjackman/homebrew,konqui/brew,alyssais/brew,toonetown/homebrew,nandub/brew,EricFromCanada/brew,Linuxbrew/brew,nandub/brew,nandub/brew,mistydemeo/homebrew,JCount/brew,claui/brew,Linuxbrew/brew,nandub/brew,bfontaine/brew