profile
viewpoint
Viktor Szépe szepeviktor G2RM+5M Budapest https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md I make your #web application's life happy 📡 24/7 Operations and Consulting 🏡 Providing tremendous value for Startups from home #hireme [ˈseːpɛ]

nunomaduro/larastan 2332

⚗️ Adds static analysis to Laravel improving developer productivity and code quality

nginx-modules/ngx_cache_purge 111

nginx module which support to purge ngx_http_(fastcgi|proxy|scgi|uwsgi)_module cache backend

aFarkas/wp-lazysizes 64

Brings lazySizes.js to WordPress

Koodimonni/Composer-Dropin-Installer 30

Use composer for installing dropin dependencies

szepeviktor/acf-get 3

Strongly typed Advanced Custom Fields get_field function variants

szepeviktor/acf-custom-database-tables-test 1

Static analysis for Advanced Custom Fields: Custom Database Tables

szepeviktor/1.-tesztmunk-m 0

most tanulom. Ezt először csak tesztelem.

szepeviktor/10up-sitemaps 0

Simple sitemaps plugin that performs at scale.

szepeviktor/2019-exploring-async 0

Examples for Async PHP Talk

PR opened bdrung/startup-time

Added awk, ruby 1.8, crystal, C+musl, crystal+musl, dart and 3 js implementations.

Hi, I checked out your old startup-time benchmarks and added results for a few additional compilers + interpreters:

  • awk
  • ruby 1.8 (because it had a different interpreter architecture and i was curious to see a comparison)
  • C static-linked with MUSL
  • Crystal
  • Crystal static-linked with MUSL
  • NodeJS
  • QuickJS
  • Duktape JS
  • Dart

I added some notes + my benchmark results to the README.

Feel free to cut out my notes if you want to just merge the rest. Also feel free to refactor or remove as much as you like before merging.

Thanks for the project! It was interesting for me to run the benchmarks and compare the results. Cheers.

+364 -18

0 comment

8 changed files

pr created time in 16 minutes

fork ericmann/wordpress-develop

WordPress Develop, Git-ified. Synced from git://develop.git.wordpress.org/, including branches and tags! This repository is just a mirror of the WordPress subversion repository. Please include a link to a pre-existing ticket on https://core.trac.wordpress.org/ with every pull request.

https://wordpress.org

fork in 22 minutes

fork ericmann/WordPress

WordPress, Git-ified. This repository is just a mirror of the WordPress subversion repository. Please do not send pull requests. Submit pull requests to https://github.com/WordPress/wordpress-develop and patches to https://core.trac.wordpress.org/ instead.

https://wordpress.org

fork in an hour

created repositoryclaytoncollie/tracking-code-for-twitter-pixel

created time in 6 hours

created repositoryclaytoncollie/tracking-code-for-pinterest-pixel

created time in 6 hours

created repositoryclaytoncollie/tracking-code-for-linkedin-insights-tag

created time in 6 hours

fork BenMorel/web-php

The www.php.net site

http://www.php.net

fork in 8 hours

created repositoryclaytoncollie/tracking-code-for-google-tag-manager

created time in 9 hours

startedjwadhams/json-logic-php

started time in 10 hours

startedgitahead/gitahead

started time in 10 hours

startedkentcdodds/match-sorter

started time in 11 hours

issue commentnunomaduro/larastan

Support for custom Eloquent Collection

Yes, that's the one :)

canvural

comment created time in 13 hours

issue commentnunomaduro/larastan

Support for custom Eloquent Collection

@cweiske Can you show the code that produces that error?

canvural

comment created time in 13 hours

issue commentnunomaduro/larastan

Support for custom Eloquent Collection

When calling a method on that custom collection class that has been returned by newCollection(), I still got an error:

Call to an undefined method Illuminate\Database\Eloquent\Collection<App\Account>::collectionMethod()

The solution was to define a "property-read" for the HasMany-property:

@property-read \App\AccountCollection $accounts

This was with phpstan 0.12.57, larastan v0.6.10


Full code:

AccountCollection.php:

<?php
namespace App;
use Illuminate\Database\Eloquent\Collection;
/**
 * @template TModel
 * @extends Collection<TModel>
 */
class AccountCollection extends Collection
{
    function collectionMethod(): void
    {
    }
}

Account.php:

<?php
namespace App;
class Account extends \Illuminate\Database\Eloquent\Model
{
    /**
     * @param array<int, Account> $models
     *
     * @return AccountCollection<Account>
     */
    public function newCollection(array $models = []): AccountCollection
    {
        return new AccountCollection($models);
    }
}

User.php:

<?php
namespace App;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
 * @property-read \App\AccountCollection $accounts <-- This is still required
 */
class User extends \Illuminate\Foundation\Auth\User
{
    public function accounts(): HasMany
    {
        return $this->hasMany(Account::class);
    }

    public function testCollectionMethodCall()
    {
        $this->accounts->collectionMethod();
    }
}
canvural

comment created time in 13 hours

startedlorisleiva/laravel-actions

started time in 15 hours

fork kingkero/NetfabbApplicationServer

The "Netfabb Application Server" (short: NAS) is a server (or: service) program written in Go, exposing a RESTful webservice API to client programs for a central storage system and distributed task management.

fork in 16 hours

startedhmgle/graftcp

started time in 16 hours

startedericblade/quagga2

started time in 17 hours

fork BenMorel/quagga2

An advanced barcode-scanner written in Javascript and TypeScript - Continuation from https://github.com/serratus/quaggajs

fork in 17 hours

fork aedontanner/jackpine

WordPress starter theme with Timber, Tailwind, and Alpine.js.

https://jackpine.io

fork in a day

MemberEvent
MemberEvent
MemberEvent

startedshivammathur/homebrew-php

started time in a day

fork johnbillion/Restsplain

WordPress REST API documentation generator

fork in a day

startedr0oth3x49/udemy-dl

started time in a day

startedmarcelthole/openapi-merge

started time in 2 days

fork villfa/phar.io

Website of the phar.io project

https://phar.io

fork in 2 days

more