'Valet-PHP installation fails due to syntax errors in .make file

I am following this guide to install valet-plus. Something seems to be wrong in the brew files though. When running the brew install [email protected] --build-from-source install command, I get the following error:

Last 15 lines from /Users/markusreis/Library/Logs/Homebrew/[email protected]/03.make:
    virtual bool operator==(const BreakIterator&) const = 0;
            ~~~~ ^
1 error generated.
make: *** [ext/intl/breakiterator/breakiterator_methods.lo] Error 1
1 error generated.
make: *** [ext/intl/breakiterator/codepointiterator_internal.lo] Error 1
In file included from /private/tmp/valet-phpA7.4-20220304-86241-1rnurk6/php-7.4.16/ext/intl/breakiterator/codepointiterator_methods.cpp:17:
/private/tmp/valet-phpA7.4-20220304-86241-1rnurk6/php-7.4.16/ext/intl/breakiterator/codepointiterator_internal.h:42:17: error: virtual function 'operator==' has a different return type ('UBool' (aka 'signed char')) than the function it overrides (which has return type 'bool')
                virtual UBool operator==(const BreakIterator& that) const;
                        ~~~~~ ^
/usr/local/Cellar/icu4c/70.1/include/unicode/brkiter.h:127:18: note: overridden virtual function is here
    virtual bool operator==(const BreakIterator&) const = 0;
            ~~~~ ^
1 error generated.
make: *** [ext/intl/breakiterator/codepointiterator_methods.lo] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/henkrehorst/homebrew-php/issues

I also tried without --build-from-source, but then I get a SSL and also there I find no way around...

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to dl.bintray.com:443

Error: [email protected]: Failed to download resource "[email protected]"
Download failed: https://dl.bintray.com/henkrehorst/valet-php/valet-php%408.0-8.0.3.sierra.bottle.tar.gz

I am absolutely clueless what to do with this. I also tried 8.0 and 7.3 - same error. Any suggestions?



Solution 1:[1]

Take a look here - https://github.com/henkrehorst/homebrew-php/issues/158#issuecomment-1059516450 It will resolve your problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 pierzakp