Skip to content

Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.

222 B
Raw Blame
<?php

declare(strict_types=1);

namespace Acme\StaticText;

define('ACME_STATIC_LIMIT', 10);

final class Defined
{
    public static function bounded(int $n): int
    {
        return min($n, ACME_STATIC_LIMIT);
    }
}