patrickomeara
Repos
33
Followers
27
Following
37

Simple locale information and methods for react native

43
27

A framework for building native applications using React

108476
22036

Primary source of truth for the Docker "Official Images" program

5787
1857

Private PaaS built on native AWS services for maximum privacy and minimum upkeep

1870
170

Events

Fix maximum call stack size exceeded

This breaks the typescript return type. I need to do some further digging on this fix. Making it draft for now.

Created at 6 days ago
Fix maximum call stack size exceeded

Thanks for the historic info @jason-vault I've only installed this into our app yesterday and hadn't looked through the previous PRs. This seems like a pretty big bug to get into production, a little worrying on first install! 😅 Although, I'm happy my approach was the same as the original. I'll patch it too for now. Hopefully it's fixed soon. Thanks again.

Created at 1 week ago
pull request opened
Fix maximum call stack size exceeded

When calling remove() on the listener added via Intercom.addEventListener() a recursion error was being thrown.

    useEffect(() => {
        const { remove } = Intercom.addEventListener(IntercomEvents.IntercomUnreadCountDidChange, ({ count }) => {
            setUnreadIntercomMessageCount(count);
        });

        return remove;
    }, []);

image

Created at 1 week ago

Fix maximum call stack size exceeded

When calling remove() on the listener added via Intercom.addEventListener() a recursion error was being thrown

Created at 1 week ago
issue comment
Jest expo targets global instead of globalThis

Thanks @Kudo for the fix, and thanks @timhooker for filing the bug report. This has been a blocker for me upgrading to 48. 👍🏻

Created at 2 weeks ago
pull request opened
Match cast field name to migration
Created at 3 weeks ago

Match cast field name to migration

Created at 3 weeks ago
pull request opened
Use subDays to determine what should be pruned

This looks like an oversight.

Created at 3 weeks ago

Use subDays to determine what should be pruned

Created at 3 weeks ago
Support Symfony 6 and Laravel 9

I've been using this fork for over a year, it works well.

Created at 1 month ago

Support Laravel 10

This is using laravel shift's upgrade branch of graham-campbell/manager until it has been merged

Created at 1 month ago

use shift's l10 branch

Created at 1 month ago
Using `DB::raw()` for column in Laravel 10.x

In Laravel 9 it is possible to use a DB::raw() expression for the column (as below). In Laravel 10 this results in an error as DB::raw() can no longer be parsed as a string using __toString() it must now go through the database grammar ie. DB::raw()->getValue(DB::connection()->getQueryGrammar())

// Worked in L9
public function getCustomPaths()
{
    return [
        [
            'name' => 'alias_path',
            'column' => DB::raw(
                'COALESCE(asset.assetName, (select alias from material where id = asset.material_id))'
            ),
            'separator' => ' » ',
        ],
    ];
}

This results in PHP str_contains throwing an error

  str_contains(): Argument #1 ($haystack) must be of type string, Illuminate\Database\Query\Expression given

  at vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:568
    564▕      * @return string
    565▕      */
    566▕     public function qualifyColumn($column)
    567▕     {
  ➜ 568▕         if (str_contains($column, '.')) {
    569▕             return $column;
    570▕         }
    571▕
    572▕         return $this->getTable().'.'.$column;

Using ->getValue(DB::connection()->getQueryGrammar()) as the column value, then creates a column not found error.

Any ideas on how to get around this? I'm trying to stay away from creating a dynamic column on the table if I can.

Created at 1 month ago
Using `DB::raw()` for column in Laravel 10.x

Fantastic work @staudenmeir! Thanks so much

Created at 1 month ago
Using `DB::raw()` for column in Laravel 10.x

Hi @staudenmeir, thanks for the quick reply.

I've altered the code like this

Created at 1 month ago
Using `DB::raw()` for column in Laravel 10.x

In Laravel 9 it is possible to use a DB::raw() expression for the column (as below). In Laravel 10 this results in an error as DB::raw() can no longer be parsed as a string using __toString() it must now go through the database grammar ie. DB::raw()->getValue(DB::connection()->getQueryGrammar())

// Worked in L9
public function getCustomPaths()
{
    return [
        [
            'name' => 'alias_path',
            'column' => DB::raw(
                'COALESCE(user.name (select title from company where id = user.company_id))'
            ),
            'separator' => ' » ',
        ],
    ];
}

This results in PHP str_contains throwing an error

  str_contains(): Argument #1 ($haystack) must be of type string, Illuminate\Database\Query\Expression given

  at vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:568
    564▕      * @return string
    565▕      */
    566▕     public function qualifyColumn($column)
    567▕     {
  ➜ 568▕         if (str_contains($column, '.')) {
    569▕             return $column;
    570▕         }
    571▕
    572▕         return $this->getTable().'.'.$column;

Using ->getValue(DB::connection()->getQueryGrammar()) as the column value, then creates a column not found.

Any ideas on how to get around this? I'm trying to stay away from creating a dynamic column on user if I can.

Created at 1 month ago

use shift's l10 branch

Created at 1 month ago

use shift's l10 branch

Created at 1 month ago
issue comment
PHP 8.2 support

I've added PHP 8.2 to the test matrix, and added back in the stability of lowest and stable

All test are now passing https://github.com/patrickomeara/php-stemmer/actions/runs/4129148443

Created at 1 month ago

Test both lowest and stable dependencies

Created at 1 month ago